... |
... |
@@ -5,3 +5,5 @@
|
5 |
5 |
|
6 |
|
LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon)
|
|
6 |
LINK_DIRECTORIES(
|
|
7 |
${PROJECT_BINARY_DIR}/lemon
|
|
8 |
)
|
7 |
9 |
|
... |
... |
@@ -37,3 +39,4 @@
|
37 |
39 |
time_measure_test
|
38 |
|
unionfind_test)
|
|
40 |
unionfind_test
|
|
41 |
)
|
39 |
42 |
|
... |
... |
@@ -42,11 +45,13 @@
|
42 |
45 |
SET(LP_TEST_LIBS lemon)
|
|
46 |
|
43 |
47 |
IF(LEMON_HAVE_GLPK)
|
44 |
48 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
|
45 |
|
ENDIF(LEMON_HAVE_GLPK)
|
|
49 |
ENDIF()
|
46 |
50 |
IF(LEMON_HAVE_CPLEX)
|
47 |
51 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
|
48 |
|
ENDIF(LEMON_HAVE_CPLEX)
|
|
52 |
ENDIF()
|
49 |
53 |
IF(LEMON_HAVE_CLP)
|
50 |
54 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
|
51 |
|
ENDIF(LEMON_HAVE_CLP)
|
|
55 |
ENDIF()
|
|
56 |
|
52 |
57 |
TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
|
... |
... |
@@ -58,7 +63,8 @@
|
58 |
63 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
|
59 |
|
COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
|
60 |
|
COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
|
61 |
|
COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
|
|
64 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
|
|
65 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
|
|
66 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
|
62 |
67 |
)
|
63 |
|
ENDIF(WIN32 AND LEMON_HAVE_GLPK)
|
|
68 |
ENDIF()
|
|
69 |
|
64 |
70 |
IF(WIN32 AND LEMON_HAVE_CPLEX)
|
... |
... |
@@ -67,6 +73,6 @@
|
67 |
73 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD
|
68 |
|
COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
|
|
74 |
COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
|
69 |
75 |
)
|
70 |
|
ENDIF(WIN32 AND LEMON_HAVE_CPLEX)
|
71 |
|
ENDIF(LEMON_HAVE_LP)
|
|
76 |
ENDIF()
|
|
77 |
ENDIF()
|
72 |
78 |
|
... |
... |
@@ -75,11 +81,13 @@
|
75 |
81 |
SET(MIP_TEST_LIBS lemon)
|
|
82 |
|
76 |
83 |
IF(LEMON_HAVE_GLPK)
|
77 |
84 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
|
78 |
|
ENDIF(LEMON_HAVE_GLPK)
|
|
85 |
ENDIF()
|
79 |
86 |
IF(LEMON_HAVE_CPLEX)
|
80 |
87 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
|
81 |
|
ENDIF(LEMON_HAVE_CPLEX)
|
|
88 |
ENDIF()
|
82 |
89 |
IF(LEMON_HAVE_CBC)
|
83 |
90 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
|
84 |
|
ENDIF(LEMON_HAVE_CBC)
|
|
91 |
ENDIF()
|
|
92 |
|
85 |
93 |
TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
|
... |
... |
@@ -91,7 +99,8 @@
|
91 |
99 |
ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
|
92 |
|
COMMAND cmake -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
|
93 |
|
COMMAND cmake -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
|
94 |
|
COMMAND cmake -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
|
|
100 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH}
|
|
101 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH}
|
|
102 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH}
|
95 |
103 |
)
|
96 |
|
ENDIF(WIN32 AND LEMON_HAVE_GLPK)
|
|
104 |
ENDIF()
|
|
105 |
|
97 |
106 |
IF(WIN32 AND LEMON_HAVE_CPLEX)
|
... |
... |
@@ -100,6 +109,6 @@
|
100 |
109 |
ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD
|
101 |
|
COMMAND cmake -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
|
|
110 |
COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH}
|
102 |
111 |
)
|
103 |
|
ENDIF(WIN32 AND LEMON_HAVE_CPLEX)
|
104 |
|
ENDIF(LEMON_HAVE_MIP)
|
|
112 |
ENDIF()
|
|
113 |
ENDIF()
|
105 |
114 |
|
... |
... |
@@ -109,2 +118,2 @@
|
109 |
118 |
ADD_TEST(${TEST_NAME} ${TEST_NAME})
|
110 |
|
ENDFOREACH(TEST_NAME)
|
|
119 |
ENDFOREACH()
|