2009-12-04 20:09:01 +03:00
|
|
|
set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
|
2013-02-06 01:10:36 +04:00
|
|
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@")
|
2009-12-04 20:09:01 +03:00
|
|
|
set(CTEST_PROJECT_NAME "CTestConfig")
|
|
|
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestConfig")
|
|
|
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestConfig/@cfg@-script")
|
|
|
|
|
|
|
|
ctest_start(Experimental)
|
|
|
|
|
|
|
|
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE rv)
|
|
|
|
if(NOT rv STREQUAL 0)
|
|
|
|
message(FATAL_ERROR "*** error in ctest_configure ***")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE rv)
|
|
|
|
if(NOT rv STREQUAL 0)
|
|
|
|
message(FATAL_ERROR "*** error in ctest_build ***")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE rv)
|
|
|
|
if(NOT rv STREQUAL 0)
|
|
|
|
message(FATAL_ERROR "*** error in ctest_test ***")
|
|
|
|
endif()
|