7 ${PROJECT_BINARY_DIR}/lemon
24 fractional_matching_test
35 min_cost_arborescence_test
38 nagamochi_ibaraki_test
50 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
51 ADD_EXECUTABLE(lp_test lp_test.cc)
53 ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
56 SET(LP_TEST_LIBS lemon)
59 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
62 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
65 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
68 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
69 ADD_TEST(lp_test lp_test)
71 IF(WIN32 AND LEMON_HAVE_GLPK)
72 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
73 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
74 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
75 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
76 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
77 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
81 IF(WIN32 AND LEMON_HAVE_CPLEX)
82 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
83 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
84 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
85 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
91 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
92 ADD_EXECUTABLE(mip_test mip_test.cc)
94 ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
97 SET(MIP_TEST_LIBS lemon)
100 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
103 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
106 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
109 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
110 ADD_TEST(mip_test mip_test)
112 IF(WIN32 AND LEMON_HAVE_GLPK)
113 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
114 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
115 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
116 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
117 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
118 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
122 IF(WIN32 AND LEMON_HAVE_CPLEX)
123 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
124 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
125 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
126 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
131 FOREACH(TEST_NAME ${TESTS})
132 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
133 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
135 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
137 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
138 ADD_TEST(${TEST_NAME} ${TEST_NAME})
139 ADD_DEPENDENCIES(check ${TEST_NAME})