COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/CMakeLists.txt

    r959 r679  
    77  ${PROJECT_BINARY_DIR}/lemon
    88)
    9 
    10 SET(TEST_WITH_VALGRIND "NO" CACHE STRING
    11   "Run the test with valgrind (YES/NO).")
    12 SET(VALGRIND_FLAGS "" CACHE STRING "Valgrind flags used by the tests.")
    139
    1410SET(TESTS
     
    3228  heap_test
    3329  kruskal_test
    34   lgf_test
    3530  maps_test
    3631  matching_test
     
    4742
    4843IF(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)
    5545  SET(LP_TEST_LIBS lemon)
    5646
     
    6757  TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
    6858  ADD_TEST(lp_test lp_test)
    69   ADD_DEPENDENCIES(check lp_test)
    7059
    7160  IF(WIN32 AND LEMON_HAVE_GLPK)
     
    8978
    9079IF(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)
    9781  SET(MIP_TEST_LIBS lemon)
    9882
     
    10993  TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
    11094  ADD_TEST(mip_test mip_test)
    111   ADD_DEPENDENCIES(check mip_test)
    11295
    11396  IF(WIN32 AND LEMON_HAVE_GLPK)
     
    131114
    132115FOREACH(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)
    138117  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})
    147119ENDFOREACH()
Note: See TracChangeset for help on using the changeset viewer.