7 ${PROJECT_BINARY_DIR}/lemon
24 fractional_matching_test
34 min_cost_arborescence_test
48 ADD_EXECUTABLE(lp_test lp_test.cc)
49 SET(LP_TEST_LIBS lemon)
52 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
55 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
58 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
61 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
62 ADD_TEST(lp_test lp_test)
64 IF(WIN32 AND LEMON_HAVE_GLPK)
65 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
66 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
67 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
68 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
69 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
70 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
74 IF(WIN32 AND LEMON_HAVE_CPLEX)
75 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
76 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
77 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
78 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
84 ADD_EXECUTABLE(mip_test mip_test.cc)
85 SET(MIP_TEST_LIBS lemon)
88 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
91 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
94 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
97 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
98 ADD_TEST(mip_test mip_test)
100 IF(WIN32 AND LEMON_HAVE_GLPK)
101 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
102 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
103 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
104 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
105 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
106 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
110 IF(WIN32 AND LEMON_HAVE_CPLEX)
111 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
112 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
113 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
114 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
119 FOREACH(TEST_NAME ${TESTS})
120 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
121 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
123 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
125 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
126 ADD_TEST(${TEST_NAME} ${TEST_NAME})
127 ADD_DEPENDENCIES(check ${TEST_NAME})