COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/CMakeLists.txt

    r477 r225  
    1 INCLUDE_DIRECTORIES(
    2   ${CMAKE_SOURCE_DIR}
    3   ${CMAKE_BINARY_DIR}
    4 )
    5 
    6 IF(HAVE_GLPK)
    7   INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
    8 ENDIF(HAVE_GLPK)
     1INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
    92
    103LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
    114
    125SET(TESTS
    13 #   adaptors_test
    146  bfs_test
    15   circulation_test
    167  counter_test
    178  dfs_test
     
    1910  dijkstra_test
    2011  dim_test
    21 #   edge_set_test
    2212  error_test
    2313  graph_copy_test
    2414  graph_test
    2515  graph_utils_test
    26   hao_orlin_test
    2716  heap_test
    2817  kruskal_test
    2918  maps_test
    30   max_matching_test
     19  random_test
    3120  path_test
    32   preflow_test
    33   radix_sort_test
    34   random_test
    35   suurballe_test
    3621  time_measure_test
    3722  unionfind_test)
    38 
    39 IF(HAVE_LP)
    40   ADD_EXECUTABLE(lp_test lp_test.cc)
    41   IF(HAVE_GLPK)
    42     TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES})
    43   ENDIF(HAVE_GLPK)
    44   ADD_TEST(lp_test lp_test)
    45 
    46   IF(WIN32 AND HAVE_GLPK)
    47     GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
    48     GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
    49     ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
    50       COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
    51       COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
    52       COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
    53     )
    54   ENDIF(WIN32 AND HAVE_GLPK)
    55 ENDIF(HAVE_LP)
    56 
    57 IF(HAVE_MIP)
    58   ADD_EXECUTABLE(mip_test mip_test.cc)
    59   IF(HAVE_GLPK)
    60     TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES})
    61   ENDIF(HAVE_GLPK)
    62   ADD_TEST(mip_test mip_test)
    63 
    64   IF(WIN32 AND HAVE_GLPK)
    65     GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
    66     GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
    67     ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
    68       COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
    69       COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
    70       COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
    71     )
    72   ENDIF(WIN32 AND HAVE_GLPK)
    73 ENDIF(HAVE_MIP)
    7423
    7524FOREACH(TEST_NAME ${TESTS})
Note: See TracChangeset for help on using the changeset viewer.