7 ${PROJECT_BINARY_DIR}/lemon
24 fractional_matching_test
34 min_cost_arborescence_test
46 ADD_EXECUTABLE(lp_test lp_test.cc)
47 SET(LP_TEST_LIBS lemon)
50 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
53 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
56 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
59 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
60 ADD_TEST(lp_test lp_test)
62 IF(WIN32 AND LEMON_HAVE_GLPK)
63 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
64 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
65 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
66 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
67 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
68 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
72 IF(WIN32 AND LEMON_HAVE_CPLEX)
73 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
74 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
75 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
76 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
82 ADD_EXECUTABLE(mip_test mip_test.cc)
83 SET(MIP_TEST_LIBS lemon)
86 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
89 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
92 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
95 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
96 ADD_TEST(mip_test mip_test)
98 IF(WIN32 AND LEMON_HAVE_GLPK)
99 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
100 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
101 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
102 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
103 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
104 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
108 IF(WIN32 AND LEMON_HAVE_CPLEX)
109 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
110 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
111 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
112 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
117 FOREACH(TEST_NAME ${TESTS})
118 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
119 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
120 ADD_TEST(${TEST_NAME} ${TEST_NAME})