diff options
author | Brad King <brad.king@kitware.com> | 2004-03-04 15:05:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-03-04 15:05:14 (GMT) |
commit | 4990e1481d378e89a0d07d1a25d882a38530db31 (patch) | |
tree | a1fae72b8f0e2c723d47ee06844e71eff8e61a75 /Tests/StringFileTest/CMakeLists.txt | |
parent | 1dd718457fe1d410314d9443fa5d82462c5ae8ea (diff) | |
download | CMake-4990e1481d378e89a0d07d1a25d882a38530db31.zip CMake-4990e1481d378e89a0d07d1a25d882a38530db31.tar.gz CMake-4990e1481d378e89a0d07d1a25d882a38530db31.tar.bz2 |
ENH: Added STRING(CONFIGURE ...) command.
Diffstat (limited to 'Tests/StringFileTest/CMakeLists.txt')
-rw-r--r-- | Tests/StringFileTest/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt index b0030fe..74b99ec 100644 --- a/Tests/StringFileTest/CMakeLists.txt +++ b/Tests/StringFileTest/CMakeLists.txt @@ -55,6 +55,11 @@ FOREACH(var FILE(APPEND "${file}" "#define ${var} \"${${var}}\"\n") ENDFOREACH(var) +# Test configuration of the string +SET(TEST_DEFINED 123) +SET(TEST_NOT_DEFINED) +STRING(CONFIGURE "${infile}" infile @ONLY) + # Write include file to a file STRING(REGEX REPLACE "includefile" "${file}" outfile "${infile}") FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h" "${outfile}") |