Configurable glpk prefix in ./scripts/bootstrap.sh and ...
unneeded solver backends are explicitely switched off with --without-*
7 ${PROJECT_BINARY_DIR}/lemon
33 min_cost_arborescence_test
47 ADD_EXECUTABLE(lp_test lp_test.cc)
48 SET(LP_TEST_LIBS lemon)
51 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
54 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
57 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
60 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
61 ADD_TEST(lp_test lp_test)
63 IF(WIN32 AND LEMON_HAVE_GLPK)
64 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
65 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
66 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
67 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
68 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
69 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
73 IF(WIN32 AND LEMON_HAVE_CPLEX)
74 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
75 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
76 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
77 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
83 ADD_EXECUTABLE(mip_test mip_test.cc)
84 SET(MIP_TEST_LIBS lemon)
87 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
90 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
93 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
96 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
97 ADD_TEST(mip_test mip_test)
99 IF(WIN32 AND LEMON_HAVE_GLPK)
100 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
101 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
102 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
103 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
104 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
105 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
109 IF(WIN32 AND LEMON_HAVE_CPLEX)
110 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
111 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
112 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
113 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
118 FOREACH(TEST_NAME ${TESTS})
119 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
120 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
121 ADD_TEST(${TEST_NAME} ${TEST_NAME})