mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 21:41:03 +00:00
30 lines
1003 B
CMake
30 lines
1003 B
CMake
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
|
set(CTEST_CMAKE_GENERATOR_PLATFORM "@CMAKE_GENERATOR_PLATFORM@")
|
|
set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
|
set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestConfig")
|
|
set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestConfig/@cfg@-script")
|
|
|
|
ctest_start(Experimental)
|
|
|
|
set(_isMultiConfig "@_isMultiConfig@")
|
|
if(_isMultiConfig)
|
|
set(cfg_opts "-DCMAKE_CONFIGURATION_TYPES=Debug\\;Release\\;MinSizeRel\\;RelWithDebInfo")
|
|
else()
|
|
set(cfg_opts)
|
|
endif()
|
|
|
|
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS "${cfg_opts}" 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()
|