diff options
author | Brad King <brad.king@kitware.com> | 2007-12-17 15:12:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-12-17 15:12:22 (GMT) |
commit | 8506938407722306adeccf12b407a8e8d92a90a6 (patch) | |
tree | 8f84564decc3f55af6c2a14244fc471f75e093e1 /Tests/Properties | |
parent | 99d57b3c8cc84f40dee02036cc6c3e12510aa08c (diff) | |
download | CMake-8506938407722306adeccf12b407a8e8d92a90a6.zip CMake-8506938407722306adeccf12b407a8e8d92a90a6.tar.gz CMake-8506938407722306adeccf12b407a8e8d92a90a6.tar.bz2 |
ENH: Added SOURCES property to targets. This is based on patch from issues #6137.
Diffstat (limited to 'Tests/Properties')
-rw-r--r-- | Tests/Properties/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Tests/Properties/CMakeLists.txt b/Tests/Properties/CMakeLists.txt index cb2ca7b..7b7bd2d 100644 --- a/Tests/Properties/CMakeLists.txt +++ b/Tests/Properties/CMakeLists.txt @@ -35,7 +35,7 @@ get_property(SOURCE_FILERESULT SOURCE_FILE SubDir/properties3.cxx SOURCETEST) if (RESULT1 AND RESULT2 AND RESULT3 AND GLOBALRESULT AND DIRECTORYRESULT AND SOURCE_FILERESULT) - add_executable (Properties SubDir/properties3.cxx) + add_executable (Properties SubDir/properties3.cxx properties) else (RESULT1 AND RESULT2 AND RESULT3 AND GLOBALRESULT AND DIRECTORYRESULT AND SOURCE_FILERESULT) message("Error: test results are RESULT1=${RESULT1} RESULT2=${RESULT2} " @@ -51,3 +51,13 @@ get_property(TARGETRESULT TARGET Properties TARGETTEST) if (NOT TARGETRESULT) message("Error: target result is TARGETRESULT=${TARGETRESULT}") endif (NOT TARGETRESULT) + +# test the target SOURCES property +get_property(Properties_SOURCES TARGET Properties SOURCES) +set_source_files_properties(${Properties_SOURCES} PROPERTIES TEST4 1) +get_source_file_property(RESULT4 properties.h TEST4) +if(NOT RESULT4) + message("Error: target result is" + " RESULT4=${RESULT4}" + " Properties_SOURCES=[${Properties_SOURCES}]") +endif(NOT RESULT4) |