CMake/Tests/CTestTestStopTime/CMakeLists.txt

12 lines
299 B
CMake

cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTestStopTime)
INCLUDE(CTest)
ADD_EXECUTABLE (Sleep sleep.c)
ADD_TEST (TestSleep Sleep 30)
ADD_TEST (ShouldNotRun Sleep 30)
SET_TESTS_PROPERTIES(ShouldNotRun PROPERTIES DEPENDS TestSleep)
SET_TESTS_PROPERTIES(ShouldNotRun PROPERTIES WILL_FAIL ON)