gravatar
ladanyi@tmit.bme.hu
ladanyi@tmit.bme.hu
Add check target for CMake (#388)
0 2 0
default
2 files changed with 4 insertions and 1 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
... ...
@@ -36,12 +36,14 @@
36 36
SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG})
37 37

	
38 38
INCLUDE(FindPythonInterp)
39 39

	
40 40
ENABLE_TESTING()
41 41

	
42
ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
43

	
42 44
ADD_SUBDIRECTORY(lemon)
43 45
IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
44 46
  ADD_SUBDIRECTORY(demo)
45 47
  ADD_SUBDIRECTORY(tools)
46 48
  ADD_SUBDIRECTORY(doc)
47 49
  ADD_SUBDIRECTORY(test)
Ignore white space 12 line context
... ...
@@ -114,10 +114,11 @@
114 114
      COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
115 115
    )
116 116
  ENDIF()
117 117
ENDIF()
118 118

	
119 119
FOREACH(TEST_NAME ${TESTS})
120
  ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
120
  ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
121 121
  TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
122 122
  ADD_TEST(${TEST_NAME} ${TEST_NAME})
123
  ADD_DEPENDENCIES(check ${TEST_NAME})
123 124
ENDFOREACH()
0 comments (0 inline)