7 ${PROJECT_BINARY_DIR}/lemon
24 fractional_matching_test
34 max_cardinality_search_test
36 min_cost_arborescence_test
39 nagamochi_ibaraki_test
52 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
53 ADD_EXECUTABLE(lp_test lp_test.cc)
55 ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
58 SET(LP_TEST_LIBS lemon)
61 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
64 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
67 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
70 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
71 ADD_TEST(lp_test lp_test)
73 IF(WIN32 AND LEMON_HAVE_GLPK)
74 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
75 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
76 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
77 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
78 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
79 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
83 IF(WIN32 AND LEMON_HAVE_CPLEX)
84 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
85 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
86 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
87 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
93 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
94 ADD_EXECUTABLE(mip_test mip_test.cc)
96 ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
99 SET(MIP_TEST_LIBS lemon)
102 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
105 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
108 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
111 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
112 ADD_TEST(mip_test mip_test)
114 IF(WIN32 AND LEMON_HAVE_GLPK)
115 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
116 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
117 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
118 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
119 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
120 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
124 IF(WIN32 AND LEMON_HAVE_CPLEX)
125 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
126 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
127 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
128 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
133 FOREACH(TEST_NAME ${TESTS})
134 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
135 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
137 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
139 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
140 ADD_TEST(${TEST_NAME} ${TEST_NAME})
141 ADD_DEPENDENCIES(check ${TEST_NAME})