diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-12-20 22:15:45 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-12-20 22:15:45 (GMT) |
commit | 3859417d1a6b583b6c84806b109426a85cfface6 (patch) | |
tree | 48aa4a483fcdcb7b8f81b700bbb165ab49950636 /Tests/ComplexOneConfig/Library/CMakeLists.txt | |
parent | 80c6f0fdec23e53daebfcd8d331f1a44004b234e (diff) | |
download | CMake-3859417d1a6b583b6c84806b109426a85cfface6.zip CMake-3859417d1a6b583b6c84806b109426a85cfface6.tar.gz CMake-3859417d1a6b583b6c84806b109426a85cfface6.tar.bz2 |
ENH: add target properties
Diffstat (limited to 'Tests/ComplexOneConfig/Library/CMakeLists.txt')
-rw-r--r-- | Tests/ComplexOneConfig/Library/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/Library/CMakeLists.txt b/Tests/ComplexOneConfig/Library/CMakeLists.txt index cf6b976..9fccfc5 100644 --- a/Tests/ComplexOneConfig/Library/CMakeLists.txt +++ b/Tests/ComplexOneConfig/Library/CMakeLists.txt @@ -40,6 +40,14 @@ SOURCE_FILES(SharedLibrarySources sharedFile) ADD_LIBRARY(CMakeTestLibraryShared SHARED ${SharedLibrarySources}) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DTEST_C_FLAGS") ADD_LIBRARY(CMakeTestCLibraryShared SHARED testConly.c) +SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES FOO BAR) +SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES LINK_FLAGS "-lm") +GET_TARGET_PROPERTY(FOO_BAR_VAR CMakeTestCLibraryShared FOO) +IF(${FOO_BAR_VAR} MATCHES "BAR") +ELSE(${FOO_BAR_VAR} MATCHES "BAR") + MESSAGE(SEND_ERROR "SET_TARGET_PROPERTIES or GET_TARGET_PROPERTY failed, FOO_BAR_VAR should be BAR, but is ${FOO_BAR_VAR}") +ENDIF(${FOO_BAR_VAR} MATCHES "BAR") + # # Attach a post-build custom-command to the lib. |