summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-04-22 21:27:27 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-04-22 21:27:27 (GMT)
commit0421089a1326f3f0080806b3eca86f60be55d509 (patch)
treed5806f2c9a1b46f859a752f38e042eeadbb587d3
parenteed5e0523996ae530584517aed3ba54db9e1c09f (diff)
downloadhdf5-0421089a1326f3f0080806b3eca86f60be55d509.zip
hdf5-0421089a1326f3f0080806b3eca86f60be55d509.tar.gz
hdf5-0421089a1326f3f0080806b3eca86f60be55d509.tar.bz2
[svn-r23609] Update with corrections
-rw-r--r--release_docs/CMake.txt140
-rw-r--r--release_docs/USING_CMake.txt28
2 files changed, 72 insertions, 96 deletions
diff --git a/release_docs/CMake.txt b/release_docs/CMake.txt
index 81dfb61..d13e1e5 100644
--- a/release_docs/CMake.txt
+++ b/release_docs/CMake.txt
@@ -263,6 +263,8 @@ Notes: This short instruction is written for users who want to quickly build
config/cmake folder, the CMakeLists.txt files in each source folder, and
CTestConfig.cmake. CTestConfig.cmake is specific to the internal testing
performed by The HDF Group. It should be altered for the users
+ installation and needs. The cacheinit.cmake file settings are used by
+ The HDF Group for daily testing. It should be altered/ignored for the users
installation and needs.
7. More information about using CMake can be found at the KitWare site,
@@ -356,10 +358,11 @@ product specific script.
************************************************************************
+========================================================================
CTestScript.cmake: common ctest script used to build, test and package
========================================================================
-cmake_minimum_required(VERSION 2.8.6 FATAL_ERROR)
+cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
########################################################
# This dashboard is maintained by The HDF Group
# For any comments please contact cdashhelp@hdfgroup.org
@@ -569,103 +572,70 @@ endforeach(v)
message("Dashboard script configuration:\n${vars}\n")
#-----------------------------------------------------------------------------
-if(${MODEL} STREQUAL "Continuous")
- ## Continuous mode is used for commit test processing
- ## --------------------------
- while (${CTEST_ELAPSED_TIME} LESS 36000)
- set(START_TIME ${CTEST_ELAPSED_TIME})
- CTEST_START (Continuous)
- CTEST_UPDATE (SOURCE "${CTEST_SOURCE_DIRECTORY}" RETURN_VALUE res)
- set (CTEST_CHECKOUT_COMMAND) # checkout on first iteration only
- message("Dashboard updated files: ${res}\n")
- if(res GREATER 0)
- CTEST_CONFIGURE (BUILD "${CTEST_BINARY_DIRECTORY}")
- CTEST_READ_CUSTOM_FILES ("${CTEST_BINARY_DIRECTORY}")
- CTEST_SUBMIT (PARTS Update Configure Notes)
- CTEST_BUILD (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
- CTEST_SUBMIT (PARTS Build)
- CTEST_TEST (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args})
- CTEST_SUBMIT (PARTS Test)
-
- execute_process (COMMAND cpack -C ${CTEST_BUILD_CONFIGURATION}
- WORKING_DIRECTORY ${CTEST_BINARY_DIRECTORY}
- RESULT_VARIABLE cpackResult
- OUTPUT_VARIABLE cpackLog
- ERROR_VARIABLE cpackLog.err
- )
- file (WRITE ${CTEST_BINARY_DIRECTORY}/cpack.log "${cpackLog.err}" "${cpackLog}")
- endif(${res} GREATER 0)
-
- CTEST_SLEEP(${START_TIME} 300 ${CTEST_ELAPSED_TIME})
- endwhile (${CTEST_ELAPSED_TIME} LESS 36000)
-#-----------------------------------------------------------------------------
-else(${MODEL} STREQUAL "Continuous")
-#-----------------------------------------------------------------------------
- ## NORMAL process
- ## -- LOCAL_SKIP_UPDATE skips updating the source folder from svn
- ## -- LOCAL_NO_SUBMIT skips reporting to CDash server
- ## -- LOCAL_SKIP_TEST skips the test process (only builds)
- ## -- LOCAL_MEMCHECK_TEST executes the Valgrind testing
- ## -- LOCAL_COVERAGE_TEST executes code coverage process
- ## --------------------------
- CTEST_START (${MODEL} TRACK ${MODEL})
- if(NOT LOCAL_SKIP_UPDATE)
- CTEST_UPDATE (SOURCE "${CTEST_SOURCE_DIRECTORY}")
- endif(NOT LOCAL_SKIP_UPDATE)
- CTEST_CONFIGURE (BUILD "${CTEST_BINARY_DIRECTORY}")
- CTEST_READ_CUSTOM_FILES ("${CTEST_BINARY_DIRECTORY}")
- if(NOT LOCAL_NO_SUBMIT)
- CTEST_SUBMIT (PARTS Update Configure Notes)
- endif(NOT LOCAL_NO_SUBMIT)
- CTEST_BUILD (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
- if(NOT LOCAL_NO_SUBMIT)
- CTEST_SUBMIT (PARTS Build)
- endif(NOT LOCAL_NO_SUBMIT)
- if(NOT LOCAL_SKIP_TEST)
- if(NOT LOCAL_MEMCHECK_TEST)
- CTEST_TEST (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args})
- if(NOT LOCAL_NO_SUBMIT)
- CTEST_SUBMIT (PARTS Test)
- endif(NOT LOCAL_NO_SUBMIT)
- else(NOT LOCAL_MEMCHECK_TEST)
- CTEST_MEMCHECK (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args})
- if(NOT LOCAL_NO_SUBMIT)
- CTEST_SUBMIT (PARTS MemCheck)
- endif(NOT LOCAL_NO_SUBMIT)
- endif(NOT LOCAL_MEMCHECK_TEST)
- if(LOCAL_COVERAGE_TEST)
- CTEST_COVERAGE (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
- if(NOT LOCAL_NO_SUBMIT)
- CTEST_SUBMIT (PARTS Coverage)
- endif(NOT LOCAL_NO_SUBMIT)
- endif(LOCAL_COVERAGE_TEST)
- endif(NOT LOCAL_SKIP_TEST)
+## NORMAL process
+## -- LOCAL_SKIP_UPDATE skips updating the source folder from svn
+## -- LOCAL_NO_SUBMIT skips reporting to CDash server
+## -- LOCAL_SKIP_TEST skips the test process (only builds)
+## -- LOCAL_MEMCHECK_TEST executes the Valgrind testing
+## -- LOCAL_COVERAGE_TEST executes code coverage process
+## --------------------------
+CTEST_START (${MODEL} TRACK ${MODEL})
+if(NOT LOCAL_SKIP_UPDATE)
+ CTEST_UPDATE (SOURCE "${CTEST_SOURCE_DIRECTORY}")
+endif(NOT LOCAL_SKIP_UPDATE)
+CTEST_CONFIGURE (BUILD "${CTEST_BINARY_DIRECTORY}")
+CTEST_READ_CUSTOM_FILES ("${CTEST_BINARY_DIRECTORY}")
+if(NOT LOCAL_NO_SUBMIT)
+ CTEST_SUBMIT (PARTS Update Configure Notes)
+endif(NOT LOCAL_NO_SUBMIT)
+ CTEST_BUILD (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
+if(NOT LOCAL_NO_SUBMIT)
+ CTEST_SUBMIT (PARTS Build)
+endif(NOT LOCAL_NO_SUBMIT)
+if(NOT LOCAL_SKIP_TEST)
if(NOT LOCAL_MEMCHECK_TEST)
- ##-----------------------------------------------
- ## Package the product
- ##-----------------------------------------------
- execute_process(COMMAND cpack -C ${CTEST_BUILD_CONFIGURATION} -V
- WORKING_DIRECTORY ${CTEST_BINARY_DIRECTORY}
- RESULT_VARIABLE cpackResult
- OUTPUT_VARIABLE cpackLog
- ERROR_VARIABLE cpackLog.err
- )
- file(WRITE ${CTEST_BINARY_DIRECTORY}/cpack.log "${cpackLog.err}" "${cpackLog}")
+ CTEST_TEST (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args})
+ if(NOT LOCAL_NO_SUBMIT)
+ CTEST_SUBMIT (PARTS Test)
+ endif(NOT LOCAL_NO_SUBMIT)
+ else(NOT LOCAL_MEMCHECK_TEST)
+ CTEST_MEMCHECK (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args})
+ if(NOT LOCAL_NO_SUBMIT)
+ CTEST_SUBMIT (PARTS MemCheck)
+ endif(NOT LOCAL_NO_SUBMIT)
endif(NOT LOCAL_MEMCHECK_TEST)
-endif(${MODEL} STREQUAL "Continuous")
+ if(LOCAL_COVERAGE_TEST)
+ CTEST_COVERAGE (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
+ if(NOT LOCAL_NO_SUBMIT)
+ CTEST_SUBMIT (PARTS Coverage)
+ endif(NOT LOCAL_NO_SUBMIT)
+ endif(LOCAL_COVERAGE_TEST)
+endif(NOT LOCAL_SKIP_TEST)
+if(NOT LOCAL_MEMCHECK_TEST)
+ ##-----------------------------------------------
+ ## Package the product
+ ##-----------------------------------------------
+ execute_process(COMMAND cpack -C ${CTEST_BUILD_CONFIGURATION} -V
+ WORKING_DIRECTORY ${CTEST_BINARY_DIRECTORY}
+ RESULT_VARIABLE cpackResult
+ OUTPUT_VARIABLE cpackLog
+ ERROR_VARIABLE cpackLog.err
+ )
+ file(WRITE ${CTEST_BINARY_DIRECTORY}/cpack.log "${cpackLog.err}" "${cpackLog}")
+endif(NOT LOCAL_MEMCHECK_TEST)
#-----------------------------------------------------------------------------
message("DONE:CTestScript")
************************************************************************
-
************************************************************************
+========================================================================
Product specific script, HDF518Static.cmake, that uses the
CTestScript.cmake file (see above). Usage:
"ctest -S HDF518Static.cmake,hdf518 -C Release -O hdf518static.log"
where hdf518 is the source folder relative to the location of these scripts
========================================================================
-cmake_minimum_required(VERSION 2.8.6 FATAL_ERROR)
+cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
# CTEST_SCRIPT_ARG is the source folder passed on the command line
set(CTEST_SOURCE_NAME ${CTEST_SCRIPT_ARG})
diff --git a/release_docs/USING_CMake.txt b/release_docs/USING_CMake.txt
index 0e980ea..eafec25 100644
--- a/release_docs/USING_CMake.txt
+++ b/release_docs/USING_CMake.txt
@@ -47,13 +47,16 @@ Notes: This short instruction is written for users who want to quickly build
HDF Install Utility (The *.exe file in the binary package for Windows).
If you are using a Windows platform, you can obtain a pre-built Windows
binary from The HDF Group's website at www.hdfgroup.org.
+ (See the appendix at the bottom of this file for an example of using
+ a non-cmake built HDF5 binary)
3. On Windows with Visual Studio, if you have installed the static HDF5
library, you will need to add the HDF5\lib folder to the library
search list. See the "Using Static Libraries with Visual Studio" section.
- 4. Set the environment variable HDF5_ROOT to the installed location of HDF5.
- On Windows HDF5_ROOT=C:\Program Files\HDF Group\HDF5\hdf5-1.8.x
+ 4. Set the environment variable HDF5_DIR to the installed location of the
+ config files for HDF5. On Windows
+ HDF5_DIR=C:/Program Files/HDF_Group/HDF5/1.8.x/cmake/hdf5
(Note there are no quote characters used on windows)
========================================================================
@@ -153,15 +156,17 @@ Notes: This short instruction is written for users who want to quickly build
config/cmake folder, the CMakeLists.txt files in each source folder, and
CTestConfig.cmake. CTestConfig.cmake is specific to the internal testing
performed by The HDF Group. It should be altered for the users
- installation and needs.
+ installation and needs. The cacheinit.cmake file settings are used by
+ The HDF Group for daily testing. It should be altered/ignored for the users
+ installation and needs.
7. More information about using CMake can be found at the KitWare site,
www.cmake.org.
-========================================================================
- Using Visual Studio 2008 with HDF5 Libraries built with Visual Studio 2008
-========================================================================
+==========================================================================
+Using Visual Studio 2008 with HDF5 Libraries built with Visual Studio 2008
+==========================================================================
8. Set up path for external libraries and headers
@@ -172,11 +177,11 @@ Notes: This short instruction is written for users who want to quickly build
and select "x64".
8.2 Find the box "Show directories for", choose "Include files", add the
- header path (i.e. c:\Program Files\HDF Group\HDF5\hdf5-1.8.x\include)
+ header path (i.e. c:\Program Files\HDF_Group\HDF5\1.8.x\include)
to the included directories.
8.3 Find the box "Show directories for", choose "Library files", add the
- library path (i.e. c:\Program Files\HDF Group\HDF5\hdf5-1.8.x\lib)
+ library path (i.e. c:\Program Files\HDF_Group\HDF5\1.8.x\lib)
to the library directories.
8.4 If using Fortran libraries, you will also need to setup the path
@@ -210,7 +215,8 @@ Notes: This short instruction is written for users who want to quickly build
cmake_minimum_required (VERSION 2.8.10)
PROJECT (HDF5MyApp C CXX)
-FIND_PACKAGE (HDF5 REQURIED)
+FIND_PACKAGE (HDF5 NAMES hdf5)
+# FIND_PACKAGE (HDF5) # Find non-cmake built HDF5
INCLUDE_DIRECTORIES (${HDF5_INCLUDE_DIRS})
SET (LINK_LIBS ${LINK_LIBS} ${HDF5_LIBRARIES})
@@ -222,7 +228,7 @@ TARGET_LINK_LIBRARIES (hdf_example ${LINK_LIBS})
************************************************************************
APPENDIX
-Below ia an example of the ctest script used by The HDF Group. See the
+Below is an example of the ctest script used by The HDF Group. See the
Appendix in the CMake.txt file for the CTestScript.cmake file used by this
script.
@@ -233,7 +239,7 @@ CTestScript.cmake file (see Appendix in the CMake.txt). Usage:
where hdf518Examples is the source folder relative to the location of these scripts
========================================================================
-cmake_minimum_required(VERSION 2.8.6 FATAL_ERROR)
+cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
set(CTEST_SOURCE_NAME ${CTEST_SCRIPT_ARG})
set(CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}/build)