7 ${PROJECT_BINARY_DIR}/lemon
32 min_cost_arborescence_test
44 ADD_EXECUTABLE(lp_test lp_test.cc)
45 SET(LP_TEST_LIBS lemon)
48 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
51 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
54 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
57 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
58 ADD_TEST(lp_test lp_test)
60 IF(WIN32 AND LEMON_HAVE_GLPK)
61 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
62 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
63 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
64 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
65 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
66 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
70 IF(WIN32 AND LEMON_HAVE_CPLEX)
71 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
72 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
73 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
74 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
80 ADD_EXECUTABLE(mip_test mip_test.cc)
81 SET(MIP_TEST_LIBS lemon)
84 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
87 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
90 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
93 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
94 ADD_TEST(mip_test mip_test)
96 IF(WIN32 AND LEMON_HAVE_GLPK)
97 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
98 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
99 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
100 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
101 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
102 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
106 IF(WIN32 AND LEMON_HAVE_CPLEX)
107 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
108 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
109 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
110 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
115 FOREACH(TEST_NAME ${TESTS})
116 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
117 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
118 ADD_TEST(${TEST_NAME} ${TEST_NAME})