summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-18 02:46:48 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-18 02:46:48 (GMT)
commitddb3dfdf2f06369eccfa7261afd2d66f3446c220 (patch)
tree3fee8f7d1e992a9e38938018ae9aa1cb898b45e2 /Source/kwsys
parent3de7010216202e59eb05968bf12fb0811ff478ca (diff)
downloadCMake-ddb3dfdf2f06369eccfa7261afd2d66f3446c220.zip
CMake-ddb3dfdf2f06369eccfa7261afd2d66f3446c220.tar.gz
CMake-ddb3dfdf2f06369eccfa7261afd2d66f3446c220.tar.bz2
ENH: Specify full path to the executable
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/CMakeLists.txt17
1 files changed, 11 insertions, 6 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index f18cdf0..7da17d0 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -428,12 +428,17 @@ IF(KWSYS_STANDALONE)
TARGET_LINK_LIBRARIES(test1 ${KWSYS_NAMESPACE})
TARGET_LINK_LIBRARIES(testCommandLineArguments ${KWSYS_NAMESPACE})
+ SET(EXEC_DIR "${CMAKE_CURRENT_BINARY_DIR}")
+ IF(EXECUTABLE_OUTPUT_PATH)
+ SET(EXEC_DIR "${EXECUTABLE_OUTPUT_PATH}")
+ ENDIF(EXECUTABLE_OUTPUT_PATH)
+
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)
- ADD_TEST(testProcess-6 testProcess 6)
+ ADD_TEST(testProcess-1 ${EXEC_DIR}/testProcess 1)
+ ADD_TEST(testProcess-2 ${EXEC_DIR}/testProcess 2)
+ ADD_TEST(testProcess-3 ${EXEC_DIR}/testProcess 3)
+ ADD_TEST(testProcess-4 ${EXEC_DIR}/testProcess 4)
+ ADD_TEST(testProcess-5 ${EXEC_DIR}/testProcess 5)
+ ADD_TEST(testProcess-6 ${EXEC_DIR}/testProcess 6)
ENDIF(BUILD_TESTING)
ENDIF(KWSYS_STANDALONE)