7 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
10 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
32 min_cost_arborescence_test
42 ADD_EXECUTABLE(lp_test lp_test.cc)
44 TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES})
46 ADD_TEST(lp_test lp_test)
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}
56 ENDIF(WIN32 AND HAVE_GLPK)
60 ADD_EXECUTABLE(mip_test mip_test.cc)
62 TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES})
64 ADD_TEST(mip_test mip_test)
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}
74 ENDIF(WIN32 AND HAVE_GLPK)
77 FOREACH(TEST_NAME ${TESTS})
78 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
79 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
80 ADD_TEST(${TEST_NAME} ${TEST_NAME})