summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-09-16 13:21:05 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-09-16 13:21:05 (GMT)
commit4d1f0fe4ea22642e67f8d71cc16136df790e0aed (patch)
treee7c32667e75ff4ee740103146921f21b03ba598d /Source/kwsys/CMakeLists.txt
parent3548c51e7d3d93476a4d0a277d668a5c405bcb1a (diff)
downloadCMake-4d1f0fe4ea22642e67f8d71cc16136df790e0aed.zip
CMake-4d1f0fe4ea22642e67f8d71cc16136df790e0aed.tar.gz
CMake-4d1f0fe4ea22642e67f8d71cc16136df790e0aed.tar.bz2
ENH: Enable registry, add test of SET_TESTS_PROPERTIES, rename tests for dart2
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt29
1 files changed, 19 insertions, 10 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 5b55fcd..568ae11 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -80,6 +80,7 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
SET(KWSYS_USE_Directory 1)
SET(KWSYS_USE_Process 1)
SET(KWSYS_USE_RegularExpression 1)
+ SET(KWSYS_USE_Registry 1)
SET(KWSYS_USE_SystemTools 1)
SET(KWSYS_USE_CommandLineArguments 1)
SET(KWSYS_USE_FundamentalType 1)
@@ -409,7 +410,8 @@ IF(KWSYS_USE_SystemTools)
ENDIF(KWSYS_USE_SystemTools)
# Add selected C++ classes.
-FOREACH(c Directory RegularExpression SystemTools CommandLineArguments)
+SET(cppclasses Directory RegularExpression SystemTools CommandLineArguments Registry)
+FOREACH(c ${cppclasses})
IF(KWSYS_USE_${c})
SET(KWSYS_CLASSES ${KWSYS_CLASSES} ${c})
ENDIF(KWSYS_USE_${c})
@@ -589,6 +591,7 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
testIOS
testHashSTL
testCommandLineArguments
+ testRegistry
)
ADD_EXECUTABLE(${test} ${test}.cxx)
TARGET_LINK_LIBRARIES(${test} ${KWSYS_NAMESPACE})
@@ -596,6 +599,7 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
# C tests
FOREACH(test
testProcess
+ testFail
)
ADD_EXECUTABLE(${test} ${test}.c)
TARGET_LINK_LIBRARIES(${test} ${KWSYS_NAMESPACE}_c)
@@ -612,14 +616,19 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
"${CMAKE_CURRENT_BINARY_DIR}/ExtraTest.cmake")
SET_DIRECTORY_PROPERTIES(PROPERTIES TEST_INCLUDE_FILE "${CMAKE_CURRENT_BINARY_DIR}/ExtraTest.cmake")
ENDIF(CTEST_TEST_KWSYS)
- ADD_TEST(kwsys-testSystemTools ${EXEC_DIR}/testSystemTools)
- ADD_TEST(kwsys-testProcess-1 ${EXEC_DIR}/testProcess 1)
- ADD_TEST(kwsys-testProcess-2 ${EXEC_DIR}/testProcess 2)
- ADD_TEST(kwsys-testProcess-3 ${EXEC_DIR}/testProcess 3)
- ADD_TEST(kwsys-testProcess-4 ${EXEC_DIR}/testProcess 4)
- ADD_TEST(kwsys-testProcess-5 ${EXEC_DIR}/testProcess 5)
- ADD_TEST(kwsys-testProcess-6 ${EXEC_DIR}/testProcess 6)
- ADD_TEST(kwsys-testProcess-7 ${EXEC_DIR}/testProcess 7)
- ADD_TEST(kwsys-testHashSTL ${EXEC_DIR}/testHashSTL)
+ ADD_TEST(kwsys.testSystemTools ${EXEC_DIR}/testSystemTools)
+ ADD_TEST(kwsys.testProcess-1 ${EXEC_DIR}/testProcess 1)
+ ADD_TEST(kwsys.testProcess-2 ${EXEC_DIR}/testProcess 2)
+ ADD_TEST(kwsys.testProcess-3 ${EXEC_DIR}/testProcess 3)
+ ADD_TEST(kwsys.testProcess-4 ${EXEC_DIR}/testProcess 4)
+ ADD_TEST(kwsys.testProcess-5 ${EXEC_DIR}/testProcess 5)
+ ADD_TEST(kwsys.testProcess-6 ${EXEC_DIR}/testProcess 6)
+ ADD_TEST(kwsys.testProcess-7 ${EXEC_DIR}/testProcess 7)
+ ADD_TEST(kwsys.testHashSTL ${EXEC_DIR}/testHashSTL)
+ ADD_TEST(kwsys.testRegistry ${EXEC_DIR}/testRegistry)
+ IF(COMMAND SET_TESTS_PROPERTIES)
+ ADD_TEST(kwsys.testFail ${EXEC_DIR}/testFail)
+ SET_TESTS_PROPERTIES(kwsys.testFail PROPERTIES WILL_FAIL ON)
+ ENDIF(COMMAND SET_TESTS_PROPERTIES)
ENDIF(BUILD_TESTING)
ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)