... | ... |
@@ -25,85 +25,95 @@ |
25 | 25 |
gomory_hu_test |
26 | 26 |
graph_copy_test |
27 | 27 |
graph_test |
28 | 28 |
graph_utils_test |
29 | 29 |
hao_orlin_test |
30 | 30 |
heap_test |
31 | 31 |
kruskal_test |
32 | 32 |
maps_test |
33 | 33 |
matching_test |
34 | 34 |
max_clique_test |
35 | 35 |
min_cost_arborescence_test |
36 | 36 |
min_cost_flow_test |
37 | 37 |
min_mean_cycle_test |
38 | 38 |
path_test |
39 | 39 |
planarity_test |
40 | 40 |
preflow_test |
41 | 41 |
radix_sort_test |
42 | 42 |
random_test |
43 | 43 |
suurballe_test |
44 | 44 |
time_measure_test |
45 | 45 |
unionfind_test |
46 | 46 |
) |
47 | 47 |
|
48 | 48 |
IF(LEMON_HAVE_LP) |
49 |
|
|
49 |
IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") |
|
50 |
ADD_EXECUTABLE(lp_test lp_test.cc) |
|
51 |
ELSE() |
|
52 |
ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc) |
|
53 |
ENDIF() |
|
54 |
|
|
50 | 55 |
SET(LP_TEST_LIBS lemon) |
51 | 56 |
|
52 | 57 |
IF(LEMON_HAVE_GLPK) |
53 | 58 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) |
54 | 59 |
ENDIF() |
55 | 60 |
IF(LEMON_HAVE_CPLEX) |
56 | 61 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES}) |
57 | 62 |
ENDIF() |
58 | 63 |
IF(LEMON_HAVE_CLP) |
59 | 64 |
SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES}) |
60 | 65 |
ENDIF() |
61 | 66 |
|
62 | 67 |
TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS}) |
63 | 68 |
ADD_TEST(lp_test lp_test) |
64 | 69 |
|
65 | 70 |
IF(WIN32 AND LEMON_HAVE_GLPK) |
66 | 71 |
GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
67 | 72 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
68 | 73 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
69 | 74 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
70 | 75 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
71 | 76 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
72 | 77 |
) |
73 | 78 |
ENDIF() |
74 | 79 |
|
75 | 80 |
IF(WIN32 AND LEMON_HAVE_CPLEX) |
76 | 81 |
GET_TARGET_PROPERTY(TARGET_LOC lp_test LOCATION) |
77 | 82 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
78 | 83 |
ADD_CUSTOM_COMMAND(TARGET lp_test POST_BUILD |
79 | 84 |
COMMAND ${CMAKE_COMMAND} -E copy ${CPLEX_BIN_DIR}/cplex91.dll ${TARGET_PATH} |
80 | 85 |
) |
81 | 86 |
ENDIF() |
82 | 87 |
ENDIF() |
83 | 88 |
|
84 | 89 |
IF(LEMON_HAVE_MIP) |
85 |
|
|
90 |
IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") |
|
91 |
ADD_EXECUTABLE(mip_test mip_test.cc) |
|
92 |
ELSE() |
|
93 |
ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc) |
|
94 |
ENDIF() |
|
95 |
|
|
86 | 96 |
SET(MIP_TEST_LIBS lemon) |
87 | 97 |
|
88 | 98 |
IF(LEMON_HAVE_GLPK) |
89 | 99 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) |
90 | 100 |
ENDIF() |
91 | 101 |
IF(LEMON_HAVE_CPLEX) |
92 | 102 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES}) |
93 | 103 |
ENDIF() |
94 | 104 |
IF(LEMON_HAVE_CBC) |
95 | 105 |
SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES}) |
96 | 106 |
ENDIF() |
97 | 107 |
|
98 | 108 |
TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS}) |
99 | 109 |
ADD_TEST(mip_test mip_test) |
100 | 110 |
|
101 | 111 |
IF(WIN32 AND LEMON_HAVE_GLPK) |
102 | 112 |
GET_TARGET_PROPERTY(TARGET_LOC mip_test LOCATION) |
103 | 113 |
GET_FILENAME_COMPONENT(TARGET_PATH ${TARGET_LOC} PATH) |
104 | 114 |
ADD_CUSTOM_COMMAND(TARGET mip_test POST_BUILD |
105 | 115 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/glpk.dll ${TARGET_PATH} |
106 | 116 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/libltdl3.dll ${TARGET_PATH} |
107 | 117 |
COMMAND ${CMAKE_COMMAND} -E copy ${GLPK_BIN_DIR}/zlib1.dll ${TARGET_PATH} |
108 | 118 |
) |
109 | 119 |
ENDIF() |
0 comments (0 inline)