1 SET(CMAKE_EXECUTABLE "${EXECUTABLE_OUTPUT_PATH}/cmake")
4 MACRO(AddCMakeTest TestName PreArgs)
5 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/${TestName}Test.cmake.in"
6 "${CMAKE_CURRENT_BINARY_DIR}/${TestName}Test.cmake" @ONLY IMMEDIATE)
7 ADD_TEST(CMake.${TestName} ${CMAKE_EXECUTABLE} ${PreArgs}
8 -P "${CMAKE_CURRENT_BINARY_DIR}/${TestName}Test.cmake" ${ARGN})
13 AddCMakeTest(VariableWatch "")
14 AddCMakeTest(Include "")
15 AddCMakeTest(FindBase "")
16 AddCMakeTest(Toolchain "")
17 AddCMakeTest(GetFilenameComponentRealpath "")
18 AddCMakeTest(Version "")
19 AddCMakeTest(Message "")
21 SET(GetPrerequisites_PreArgs
22 "-DCTEST_CONFIGURATION_TYPE:STRING=\\\${CTEST_CONFIGURATION_TYPE}"
24 AddCMakeTest(GetPrerequisites "${GetPrerequisites_PreArgs}")