You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
422 B
20 lines
422 B
cmake_minimum_required (VERSION 2.6)
|
|
PROJECT(CTestTestFailure)
|
|
|
|
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 (NoBuild badCode.cxx)
|
|
TARGET_LINK_LIBRARIES (NoBuild ${EXTRA_LIBS})
|
|
|
|
ENABLE_TESTING ()
|
|
|
|
ADD_TEST (TestNoExe NoBuild)
|
|
|
|
INCLUDE (CTest)
|
|
|