7 INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIR})
10 LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
40 ADD_EXECUTABLE(lp_test lp_test.cc)
42 TARGET_LINK_LIBRARIES(lp_test lemon ${GLPK_LIBRARIES})
44 ADD_TEST(lp_test lp_test)
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}
54 ENDIF(WIN32 AND HAVE_GLPK)
58 ADD_EXECUTABLE(mip_test mip_test.cc)
60 TARGET_LINK_LIBRARIES(mip_test lemon ${GLPK_LIBRARIES})
62 ADD_TEST(mip_test mip_test)
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}
72 ENDIF(WIN32 AND HAVE_GLPK)
75 FOREACH(TEST_NAME ${TESTS})
76 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
77 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
78 ADD_TEST(${TEST_NAME} ${TEST_NAME})