diff options
author | Brad King <brad.king@kitware.com> | 2007-11-12 22:34:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-11-12 22:34:14 (GMT) |
commit | f8a5d485a064820b62f8a853d107cb23c114efb0 (patch) | |
tree | ee0497f84f348a151a503443a9eb86bd39c3f430 /Source/kwsys/CMakeLists.txt | |
parent | a546ba7ed496312137202cdb356ebf739350cf5e (diff) | |
download | CMake-f8a5d485a064820b62f8a853d107cb23c114efb0.zip CMake-f8a5d485a064820b62f8a853d107cb23c114efb0.tar.gz CMake-f8a5d485a064820b62f8a853d107cb23c114efb0.tar.bz2 |
ENH: Adding DateStamp feature to KWSys. This provides a header file giving preprocessor access to a dated version. The 'datestamp' will be updated automatically every day by a script.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 13b884b..2786435 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -135,6 +135,7 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR) SET(KWSYS_USE_FundamentalType 1) SET(KWSYS_USE_Terminal 1) SET(KWSYS_USE_IOStream 1) + SET(KWSYS_USE_DateStamp 1) ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR) # Setup the large file support default. @@ -628,14 +629,26 @@ SET(cppclasses ) FOREACH(cpp ${cppclasses}) IF(KWSYS_USE_${cpp}) + # Use the corresponding class. SET(KWSYS_CLASSES ${KWSYS_CLASSES} ${cpp}) + + # Load component-specific CMake code. + IF(EXISTS ${PROJECT_SOURCE_DIR}/${cpp}.cmake) + INCLUDE(${PROJECT_SOURCE_DIR}/kwsys${cpp}.cmake) + ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/${cpp}.cmake) ENDIF(KWSYS_USE_${cpp}) ENDFOREACH(cpp) # Add selected C components. -FOREACH(c Process Base64 FundamentalType MD5 Terminal System) +FOREACH(c Process Base64 FundamentalType MD5 Terminal System DateStamp) IF(KWSYS_USE_${c}) + # Use the corresponding header file. SET(KWSYS_H_FILES ${KWSYS_H_FILES} ${c}) + + # Load component-specific CMake code. + IF(EXISTS ${PROJECT_SOURCE_DIR}/${c}.cmake) + INCLUDE(${PROJECT_SOURCE_DIR}/kwsys${c}.cmake) + ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/${c}.cmake) ENDIF(KWSYS_USE_${c}) ENDFOREACH(c) |