summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/CTest.cmake12
-rw-r--r--Modules/DartConfiguration.tcl.in2
2 files changed, 14 insertions, 0 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake
index 952e18e..40ae7fd 100644
--- a/Modules/CTest.cmake
+++ b/Modules/CTest.cmake
@@ -190,6 +190,18 @@ IF(BUILD_TESTING)
# set the build command
BUILD_COMMAND(MAKECOMMAND ${MAKEPROGRAM} )
+ IF(NOT "${CMAKE_GENERATOR}" MATCHES "Make")
+ SET(CTEST_USE_LAUNCHERS 0)
+ ENDIF(NOT "${CMAKE_GENERATOR}" MATCHES "Make")
+ IF(CTEST_USE_LAUNCHERS)
+ SET(CTEST_LAUNCH_COMPILE "\"${CMAKE_CTEST_COMMAND}\" --launch --target-name <TARGET_NAME> --build-dir <CMAKE_CURRENT_BINARY_DIR> --output <OBJECT> --source <SOURCE> --language <LANGUAGE> --")
+ SET(CTEST_LAUNCH_LINK "\"${CMAKE_CTEST_COMMAND}\" --launch --target-name <TARGET_NAME> --build-dir <CMAKE_CURRENT_BINARY_DIR> --output <TARGET> --target-type <TARGET_TYPE> --language <LANGUAGE> --")
+ SET(CTEST_LAUNCH_CUSTOM "\"${CMAKE_CTEST_COMMAND}\" --launch --target-name <TARGET_NAME> --build-dir <CMAKE_CURRENT_BINARY_DIR> --output <OUTPUT> --")
+ SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CTEST_LAUNCH_COMPILE}")
+ SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CTEST_LAUNCH_LINK}")
+ SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_CUSTOM "${CTEST_LAUNCH_CUSTOM}")
+ ENDIF(CTEST_USE_LAUNCHERS)
+
MARK_AS_ADVANCED(
COVERAGE_COMMAND
CVSCOMMAND
diff --git a/Modules/DartConfiguration.tcl.in b/Modules/DartConfiguration.tcl.in
index 3ff6a59..39760b4 100644
--- a/Modules/DartConfiguration.tcl.in
+++ b/Modules/DartConfiguration.tcl.in
@@ -60,3 +60,5 @@ CoverageCommand: @COVERAGE_COMMAND@
# process will be summaily terminated.
# Currently set to 25 minutes
TimeOut: @DART_TESTING_TIMEOUT@
+
+UseLaunchers: @CTEST_USE_LAUNCHERS@