Add soplex support to scripts/bootstrap.sh plus...
it checks whether cbc and soplex are installed at the given prefix.
7 ${PROJECT_BINARY_DIR}/lemon
33 min_cost_arborescence_test
45 ADD_EXECUTABLE(lp_test lp_test.cc)
46 SET(LP_TEST_LIBS lemon)
49 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
52 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
55 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
58 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
59 ADD_TEST(lp_test lp_test)
61 IF(WIN32 AND LEMON_HAVE_GLPK)
62 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
63 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
64 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
65 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
66 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
67 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
71 IF(WIN32 AND LEMON_HAVE_CPLEX)
72 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
73 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
74 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
75 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
81 ADD_EXECUTABLE(mip_test mip_test.cc)
82 SET(MIP_TEST_LIBS lemon)
85 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
88 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
91 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
94 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
95 ADD_TEST(mip_test mip_test)
97 IF(WIN32 AND LEMON_HAVE_GLPK)
98 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
99 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
100 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
101 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
102 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
103 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
107 IF(WIN32 AND LEMON_HAVE_CPLEX)
108 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
109 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
110 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
111 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
116 FOREACH(TEST_NAME ${TESTS})
117 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
118 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
119 ADD_TEST(${TEST_NAME} ${TEST_NAME})