6 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon)
29 min_cost_arborescence_test
40 ADD_EXECUTABLE(lp_test lp_test.cc)
41 SET(LP_TEST_LIBS lemon)
43 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
46 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
49 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
51 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
52 ADD_TEST(lp_test lp_test)
54 IF(WIN32 AND HAVE_GLPK)
55 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
56 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
57 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
58 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
59 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
60 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
62 ENDIF(WIN32 AND HAVE_GLPK)
63 IF(WIN32 AND HAVE_CPLEX)
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 -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
69 ENDIF(WIN32 AND HAVE_CPLEX)
73 ADD_EXECUTABLE(mip_test mip_test.cc)
74 SET(MIP_TEST_LIBS lemon)
76 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
79 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
82 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
84 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
85 ADD_TEST(mip_test mip_test)
87 IF(WIN32 AND HAVE_GLPK)
88 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
89 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
90 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
91 COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
92 COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
93 COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
95 ENDIF(WIN32 AND HAVE_GLPK)
96 IF(WIN32 AND HAVE_CPLEX)
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 -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
102 ENDIF(WIN32 AND HAVE_CPLEX)
105 FOREACH(TEST_NAME ${TESTS})
106 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
107 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
108 ADD_TEST(${TEST_NAME} ${TEST_NAME})
109 ENDFOREACH(TEST_NAME)