7 ${PROJECT_BINARY_DIR}/lemon
24 fractional_matching_test
34 max_cardinality_search_test
36 min_cost_arborescence_test
39 nagamochi_ibaraki_test
51 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
52 ADD_EXECUTABLE(lp_test lp_test.cc)
54 ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
57 SET(LP_TEST_LIBS lemon)
60 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
63 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
66 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
69 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
70 ADD_TEST(lp_test lp_test)
72 IF(WIN32 AND LEMON_HAVE_GLPK)
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 ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
77 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
78 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
82 IF(WIN32 AND LEMON_HAVE_CPLEX)
83 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
84 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
85 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
86 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
92 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
93 ADD_EXECUTABLE(mip_test mip_test.cc)
95 ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
98 SET(MIP_TEST_LIBS lemon)
101 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
104 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
107 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
110 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
111 ADD_TEST(mip_test mip_test)
113 IF(WIN32 AND LEMON_HAVE_GLPK)
114 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
115 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
116 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
117 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
118 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
119 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
123 IF(WIN32 AND LEMON_HAVE_CPLEX)
124 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
125 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
126 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
127 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
132 FOREACH(TEST_NAME ${TESTS})
133 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
134 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
136 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
138 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
139 ADD_TEST(${TEST_NAME} ${TEST_NAME})
140 ADD_DEPENDENCIES(check ${TEST_NAME})