summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Library/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-20 22:15:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-20 22:15:45 (GMT)
commit3859417d1a6b583b6c84806b109426a85cfface6 (patch)
tree48aa4a483fcdcb7b8f81b700bbb165ab49950636 /Tests/Complex/Library/CMakeLists.txt
parent80c6f0fdec23e53daebfcd8d331f1a44004b234e (diff)
downloadCMake-3859417d1a6b583b6c84806b109426a85cfface6.zip
CMake-3859417d1a6b583b6c84806b109426a85cfface6.tar.gz
CMake-3859417d1a6b583b6c84806b109426a85cfface6.tar.bz2
ENH: add target properties
Diffstat (limited to 'Tests/Complex/Library/CMakeLists.txt')
-rw-r--r--Tests/Complex/Library/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/Complex/Library/CMakeLists.txt b/Tests/Complex/Library/CMakeLists.txt
index cf6b976..9fccfc5 100644
--- a/Tests/Complex/Library/CMakeLists.txt
+++ b/Tests/Complex/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.