7 ${PROJECT_BINARY_DIR}/lemon
24 fractional_matching_test
35 min_cost_arborescence_test
49 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
50 ADD_EXECUTABLE(lp_test lp_test.cc)
52 ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
55 SET(LP_TEST_LIBS lemon)
58 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
61 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
64 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
67 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
68 ADD_TEST(lp_test lp_test)
70 IF(WIN32 AND LEMON_HAVE_GLPK)
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 ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
75 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
76 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
80 IF(WIN32 AND LEMON_HAVE_CPLEX)
81 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
82 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
83 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
84 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
90 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
91 ADD_EXECUTABLE(mip_test mip_test.cc)
93 ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
96 SET(MIP_TEST_LIBS lemon)
99 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
102 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
105 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
108 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
109 ADD_TEST(mip_test mip_test)
111 IF(WIN32 AND LEMON_HAVE_GLPK)
112 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
113 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
114 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
115 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
116 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
117 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
121 IF(WIN32 AND LEMON_HAVE_CPLEX)
122 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
123 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
124 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
125 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
130 FOREACH(TEST_NAME ${TESTS})
131 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
132 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
134 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
136 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
137 ADD_TEST(${TEST_NAME} ${TEST_NAME})
138 ADD_DEPENDENCIES(check ${TEST_NAME})