2009-12-01 17:12:07 +03:00
|
|
|
# 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)
|
|
|
|
|
2009-12-10 19:19:23 +03:00
|
|
|
# Choose a configuration that was built if none is given.
|
|
|
|
IF(NOT CTEST_CONFIGURATION_TYPE)
|
2009-01-05 22:14:25 +03:00
|
|
|
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}")
|
2009-12-10 19:19:23 +03:00
|
|
|
ENDIF(NOT CTEST_CONFIGURATION_TYPE)
|
2009-11-23 22:24:53 +03:00
|
|
|
|
2009-11-24 20:15:33 +03:00
|
|
|
@TEST_HOME_ENV_CODE@
|