20 lines
414 B
CMake
20 lines
414 B
CMake
|
cmake_minimum_required (VERSION 2.6)
|
||
|
PROJECT(CTestTestCrash)
|
||
|
|
||
|
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")
|
||
|
|
||
|
ADD_EXECUTABLE (Crash crash.cxx)
|
||
|
TARGET_LINK_LIBRARIES (NoBuild ${EXTRA_LIBS})
|
||
|
|
||
|
ENABLE_TESTING ()
|
||
|
|
||
|
ADD_TEST (TestCrash Crash)
|
||
|
|
||
|
INCLUDE (CTest)
|
||
|
|