blob: 27ee1fdd939c15cb3e9ba0fabb84e2f8e757ede4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Choose a configuration with which to drive CTest tests.
if(CTEST_CONFIGURATION_TYPE)
set(CTestTest_CONFIG "${CTEST_CONFIGURATION_TYPE}")
else(CTEST_CONFIGURATION_TYPE)
set(CTestTest_CONFIG "@CTestTest_CONFIG@")
endif(CTEST_CONFIGURATION_TYPE)
# Choose a configuration that was built if none is given.
if(NOT CTEST_CONFIGURATION_TYPE)
set(CTEST_CMD "@CMAKE_CTEST_COMMAND@@CMAKE_EXECUTABLE_SUFFIX@")
get_filename_component(CTEST_DIR "${CTEST_CMD}" PATH)
get_filename_component(CTEST_EXE "${CTEST_CMD}" NAME)
foreach(cfg Release Debug MinSizeRel RelWithDebInfo)
if(NOT CTEST_CONFIGURATION_TYPE)
if(EXISTS "${CTEST_DIR}/${cfg}/${CTEST_EXE}")
set(CTEST_CONFIGURATION_TYPE ${cfg})
endif(EXISTS "${CTEST_DIR}/${cfg}/${CTEST_EXE}")
endif(NOT CTEST_CONFIGURATION_TYPE)
endforeach(cfg)
if(NOT CTEST_CONFIGURATION_TYPE)
set(CTEST_CONFIGURATION_TYPE NoConfig)
endif(NOT CTEST_CONFIGURATION_TYPE)
message("Guessing configuration ${CTEST_CONFIGURATION_TYPE}")
endif(NOT CTEST_CONFIGURATION_TYPE)
@TEST_HOME_ENV_CODE@
|