ladanyi@496: INCLUDE_DIRECTORIES( ladanyi@496: ${CMAKE_SOURCE_DIR} ladanyi@496: ${CMAKE_BINARY_DIR} ladanyi@496: ) deba@426: ladanyi@498: IF(HAVE_GLPK) ladanyi@498: INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR}) ladanyi@498: ENDIF(HAVE_GLPK) ladanyi@141: alpar@225: LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon) ladanyi@141: alpar@225: SET(TESTS deba@559: adaptors_test ladanyi@141: bfs_test alpar@443: circulation_test ladanyi@141: counter_test ladanyi@141: dfs_test ladanyi@141: digraph_test kpeter@170: dijkstra_test ladanyi@141: dim_test deba@559: edge_set_test ladanyi@141: error_test ladanyi@569: euler_test deba@200: graph_copy_test ladanyi@141: graph_test kpeter@171: graph_utils_test deba@426: hao_orlin_test deba@203: heap_test ladanyi@141: kruskal_test ladanyi@141: maps_test deba@338: max_matching_test deba@522: min_cost_arborescence_test alpar@443: path_test alpar@443: preflow_test ladanyi@496: radix_sort_test alpar@225: random_test alpar@443: suurballe_test ladanyi@141: time_measure_test ladanyi@141: unionfind_test) ladanyi@141: ladanyi@496: IF(HAVE_LP) ladanyi@496: ADD_EXECUTABLE(lp_test lp_test.cc) ladanyi@498: IF(HAVE_GLPK) ladanyi@498: TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES}) ladanyi@498: ENDIF(HAVE_GLPK) ladanyi@496: ADD_TEST(lp_test lp_test) ladanyi@496: ladanyi@498: IF(WIN32 AND HAVE_GLPK) ladanyi@496: GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) ladanyi@496: GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) ladanyi@496: ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD ladanyi@496: COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} ladanyi@496: COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} ladanyi@496: COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} ladanyi@496: ) ladanyi@498: ENDIF(WIN32 AND HAVE_GLPK) ladanyi@496: ENDIF(HAVE_LP) ladanyi@496: ladanyi@496: IF(HAVE_MIP) ladanyi@496: ADD_EXECUTABLE(mip_test mip_test.cc) ladanyi@498: IF(HAVE_GLPK) ladanyi@498: TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES}) ladanyi@498: ENDIF(HAVE_GLPK) ladanyi@496: ADD_TEST(mip_test mip_test) ladanyi@496: ladanyi@498: IF(WIN32 AND HAVE_GLPK) ladanyi@496: GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) ladanyi@496: GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) ladanyi@496: ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD ladanyi@496: COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} ladanyi@496: COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} ladanyi@496: COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} ladanyi@496: ) ladanyi@498: ENDIF(WIN32 AND HAVE_GLPK) ladanyi@496: ENDIF(HAVE_MIP) ladanyi@496: alpar@225: FOREACH(TEST_NAME ${TESTS}) alpar@225: ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) alpar@225: TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) alpar@225: ADD_TEST(${TEST_NAME} ${TEST_NAME}) alpar@225: ENDFOREACH(TEST_NAME)