diff options
Diffstat (limited to 'Tests/CTestTestTimeout')
-rw-r--r-- | Tests/CTestTestTimeout/CMakeLists.txt | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Tests/CTestTestTimeout/CMakeLists.txt b/Tests/CTestTestTimeout/CMakeLists.txt index ed7f175..5fce680 100644 --- a/Tests/CTestTestTimeout/CMakeLists.txt +++ b/Tests/CTestTestTimeout/CMakeLists.txt @@ -1,17 +1,9 @@ cmake_minimum_required (VERSION 2.8) PROJECT(CTestTestTimeout) - -SET(DART_ROOT "" CACHE STRING "" FORCE) -ENABLE_TESTING() -INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake) - -GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH) -SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest") +INCLUDE(CTest) ADD_EXECUTABLE (Timeout timeout.c) -ENABLE_TESTING () - ADD_TEST(NAME TestTimeout COMMAND ${CMAKE_COMMAND} -D Timeout=$<TARGET_FILE:Timeout> -D Log=${CMAKE_CURRENT_BINARY_DIR}/timeout.log @@ -25,6 +17,3 @@ ADD_TEST(NAME CheckChild -P ${CMAKE_CURRENT_SOURCE_DIR}/check.cmake ) SET_TESTS_PROPERTIES(CheckChild PROPERTIES DEPENDS TestTimeout) - - -INCLUDE (CTest) |