7 ${PROJECT_BINARY_DIR}/lemon
24 fractional_matching_test
35 min_cost_arborescence_test
49 ADD_EXECUTABLE(lp_test lp_test.cc)
50 SET(LP_TEST_LIBS lemon)
53 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
56 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
59 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
62 TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
63 ADD_TEST(lp_test lp_test)
65 IF(WIN32 AND LEMON_HAVE_GLPK)
66 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
67 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
68 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
69 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
70 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
71 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
75 IF(WIN32 AND LEMON_HAVE_CPLEX)
76 GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION)
77 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
78 ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
79 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
85 ADD_EXECUTABLE(mip_test mip_test.cc)
86 SET(MIP_TEST_LIBS lemon)
89 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
92 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
95 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
98 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
99 ADD_TEST(mip_test mip_test)
101 IF(WIN32 AND LEMON_HAVE_GLPK)
102 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
103 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
104 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
105 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
106 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
107 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
111 IF(WIN32 AND LEMON_HAVE_CPLEX)
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 ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
120 FOREACH(TEST_NAME ${TESTS})
121 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
122 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
124 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
126 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
127 ADD_TEST(${TEST_NAME} ${TEST_NAME})
128 ADD_DEPENDENCIES(check ${TEST_NAME})