COIN-OR::LEMON - Graph Library

Changeset 528:88bd39ef7d98 in lemon-1.2 for test/CMakeLists.txt


Ignore:
Timestamp:
02/23/09 13:26:21 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Parents:
527:c458e02723b1 (diff), 490:7f8560cb9d65 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Phase:
public
Message:

Merge

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/CMakeLists.txt

    r490 r528  
    1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     1INCLUDE_DIRECTORIES(
     2  ${CMAKE_SOURCE_DIR}
     3  ${CMAKE_BINARY_DIR}
     4)
     5
     6IF(HAVE_GLPK)
     7  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
     8ENDIF(HAVE_GLPK)
    29
    310LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
    411
    512SET(TESTS
     13  adaptors_test
    614  bfs_test
     15  circulation_test
    716  counter_test
    817  dfs_test
     
    1019  dijkstra_test
    1120  dim_test
     21  edge_set_test
    1222  error_test
     23  euler_test
    1324  graph_copy_test
    1425  graph_test
     
    2031  max_matching_test
    2132  min_cost_arborescence_test
     33  path_test
     34  preflow_test
     35  radix_sort_test
    2236  random_test
    23   path_test
     37  suurballe_test
    2438  time_measure_test
    2539  unionfind_test)
     40
     41IF(HAVE_LP)
     42  ADD_EXECUTABLE(lp_test lp_test.cc)
     43  IF(HAVE_GLPK)
     44    TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES})
     45  ENDIF(HAVE_GLPK)
     46  ADD_TEST(lp_test lp_test)
     47
     48  IF(WIN32 AND HAVE_GLPK)
     49    GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
     50    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
     51    ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
     52      COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
     53      COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
     54      COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
     55    )
     56  ENDIF(WIN32 AND HAVE_GLPK)
     57ENDIF(HAVE_LP)
     58
     59IF(HAVE_MIP)
     60  ADD_EXECUTABLE(mip_test mip_test.cc)
     61  IF(HAVE_GLPK)
     62    TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES})
     63  ENDIF(HAVE_GLPK)
     64  ADD_TEST(mip_test mip_test)
     65
     66  IF(WIN32 AND HAVE_GLPK)
     67    GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
     68    GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
     69    ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
     70      COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
     71      COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
     72      COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
     73    )
     74  ENDIF(WIN32 AND HAVE_GLPK)
     75ENDIF(HAVE_MIP)
    2676
    2777FOREACH(TEST_NAME ${TESTS})
  • test/CMakeLists.txt

    r522 r528  
    3030  maps_test
    3131  max_matching_test
     32  min_cost_arborescence_test
    3233  path_test
    3334  preflow_test
Note: See TracChangeset for help on using the changeset viewer.