7 ${PROJECT_BINARY_DIR}/lemon
32 min_cost_arborescence_test
44 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
45 ADD_EXECUTABLE(lp_test lp_test.cc)
47 ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL 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 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
86 ADD_EXECUTABLE(mip_test mip_test.cc)
88 ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
91 SET(MIP_TEST_LIBS lemon)
94 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
97 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
100 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
103 TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
104 ADD_TEST(mip_test mip_test)
106 IF(WIN32 AND LEMON_HAVE_GLPK)
107 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
108 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
109 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
110 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
111 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
112 COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
116 IF(WIN32 AND LEMON_HAVE_CPLEX)
117 GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION)
118 GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH)
119 ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
120 COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
125 FOREACH(TEST_NAME ${TESTS})
126 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
127 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc)
129 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc)
131 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon)
132 ADD_TEST(${TEST_NAME} ${TEST_NAME})
133 ADD_DEPENDENCIES(check ${TEST_NAME})