7 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
10 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon)
33 min_cost_arborescence_test
44 ADD_EXECUTABLE(lp_test lp_test.cc)
46 TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES})
48 ADD_TEST(lp_test lp_test)
50 IF(WIN32 AND HAVE_GLPK)
51 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
52 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
53 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
54 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
55 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
56 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
58 ENDIF(WIN32 AND HAVE_GLPK)
62 ADD_EXECUTABLE(mip_test mip_test.cc)
64 TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES})
66 ADD_TEST(mip_test mip_test)
68 IF(WIN32 AND HAVE_GLPK)
69 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
70 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
71 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
72 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
73 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
74 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
76 ENDIF(WIN32 AND HAVE_GLPK)
79 FOREACH(TEST_NAME ${TESTS})
80 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
81 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
82 ADD_TEST(${TEST_NAME} ${TEST_NAME})