ENH: Specify full path to the executable

This commit is contained in:
Andy Cedilnik 2004-10-17 22:46:48 -04:00
parent 3de7010216
commit ddb3dfdf2f
1 changed files with 11 additions and 6 deletions

View File

@ -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)