Changes in test/CMakeLists.txt [959:17e36e175725:679:9c7639f3a741] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r959 r679 7 7 ${PROJECT_BINARY_DIR}/lemon 8 8 ) 9 10 SET(TEST_WITH_VALGRIND "NO" CACHE STRING11 "Run the test with valgrind (YES/NO).")12 SET(VALGRIND_FLAGS "" CACHE STRING "Valgrind flags used by the tests.")13 9 14 10 SET(TESTS … … 32 28 heap_test 33 29 kruskal_test 34 lgf_test35 30 maps_test 36 31 matching_test … … 47 42 48 43 IF(LEMON_HAVE_LP) 49 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") 50 ADD_EXECUTABLE(lp_test lp_test.cc) 51 ELSE() 52 ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc) 53 ENDIF() 54 44 ADD_EXECUTABLE(lp_test lp_test.cc) 55 45 SET(LP_TEST_LIBS lemon) 56 46 … … 67 57 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) 68 58 ADD_TEST(lp_test lp_test) 69 ADD_DEPENDENCIES(check lp_test)70 59 71 60 IF(WIN32 AND LEMON_HAVE_GLPK) … … 89 78 90 79 IF(LEMON_HAVE_MIP) 91 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") 92 ADD_EXECUTABLE(mip_test mip_test.cc) 93 ELSE() 94 ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc) 95 ENDIF() 96 80 ADD_EXECUTABLE(mip_test mip_test.cc) 97 81 SET(MIP_TEST_LIBS lemon) 98 82 … … 109 93 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) 110 94 ADD_TEST(mip_test mip_test) 111 ADD_DEPENDENCIES(check mip_test)112 95 113 96 IF(WIN32 AND LEMON_HAVE_GLPK) … … 131 114 132 115 FOREACH(TEST_NAME ${TESTS}) 133 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") 134 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) 135 ELSE() 136 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc) 137 ENDIF() 116 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) 138 117 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) 139 IF(TEST_WITH_VALGRIND) 140 ADD_TEST(${TEST_NAME} 141 valgrind --error-exitcode=1 ${VALGRIND_FLAGS} 142 ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME} ) 143 ELSE() 144 ADD_TEST(${TEST_NAME} ${TEST_NAME}) 145 ENDIF() 146 ADD_DEPENDENCIES(check ${TEST_NAME}) 118 ADD_TEST(${TEST_NAME} ${TEST_NAME}) 147 119 ENDFOREACH()
Note: See TracChangeset
for help on using the changeset viewer.