diff options
author | Brad King <brad.king@kitware.com> | 2004-01-17 17:47:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-01-17 17:47:11 (GMT) |
commit | f2714ab435c1b09a72a5e4d835cf465d23b18691 (patch) | |
tree | 4a88a51deec3d258da5bfebf386188444a6f8d91 | |
parent | 740505bb63b883d5350f8e8f5684b11a486ad792 (diff) | |
download | CMake-f2714ab435c1b09a72a5e4d835cf465d23b18691.zip CMake-f2714ab435c1b09a72a5e4d835cf465d23b18691.tar.gz CMake-f2714ab435c1b09a72a5e4d835cf465d23b18691.tar.bz2 |
ENH: Added Dart testing configuration.
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 609a44b..1a2b4b3 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -77,6 +77,13 @@ IF(NOT KWSYS_NAMESPACE) SET(KWSYS_USE_Process 1) SET(KWSYS_USE_RegularExpression 1) SET(KWSYS_USE_SystemTools 1) + + # Enable testing. + INCLUDE(${CMAKE_ROOT}/Modules/Dart.cmake) + MARK_AS_ADVANCED(BUILD_TESTING DART_ROOT TCL_TCLSH) + IF(BUILD_TESTING) + ENABLE_TESTING() + ENDIF(BUILD_TESTING) ENDIF(NOT KWSYS_NAMESPACE) #----------------------------------------------------------------------------- @@ -373,4 +380,12 @@ IF(KWSYS_STANDALONE) TARGET_LINK_LIBRARIES(testIOS ${KWSYS_NAMESPACE}) TARGET_LINK_LIBRARIES(testProcess ${KWSYS_NAMESPACE}) TARGET_LINK_LIBRARIES(test1 ${KWSYS_NAMESPACE}) + + IF(BUILD_TESTING) + ADD_TEST(testProcess-1 testProcess 1) + ADD_TEST(testProcess-2 testProcess 2) + ADD_TEST(testProcess-3 testProcess 3) + ADD_TEST(testProcess-4 testProcess 4) + ADD_TEST(testProcess-5 testProcess 5) + ENDIF(BUILD_TESTING) ENDIF(KWSYS_STANDALONE) |