equal
deleted
inserted
replaced
43 time_measure_test |
43 time_measure_test |
44 unionfind_test |
44 unionfind_test |
45 ) |
45 ) |
46 |
46 |
47 IF(LEMON_HAVE_LP) |
47 IF(LEMON_HAVE_LP) |
48 ADD_EXECUTABLE(lp_test lp_test.cc) |
48 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") |
|
49 ADD_EXECUTABLE(lp_test lp_test.cc) |
|
50 ELSE() |
|
51 ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc) |
|
52 ENDIF() |
|
53 |
49 SET(LP_TEST_LIBS lemon) |
54 SET(LP_TEST_LIBS lemon) |
50 |
55 |
51 IF(LEMON_HAVE_GLPK) |
56 IF(LEMON_HAVE_GLPK) |
52 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) |
57 SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES}) |
53 ENDIF() |
58 ENDIF() |
79 ) |
84 ) |
80 ENDIF() |
85 ENDIF() |
81 ENDIF() |
86 ENDIF() |
82 |
87 |
83 IF(LEMON_HAVE_MIP) |
88 IF(LEMON_HAVE_MIP) |
84 ADD_EXECUTABLE(mip_test mip_test.cc) |
89 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") |
|
90 ADD_EXECUTABLE(mip_test mip_test.cc) |
|
91 ELSE() |
|
92 ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc) |
|
93 ENDIF() |
|
94 |
85 SET(MIP_TEST_LIBS lemon) |
95 SET(MIP_TEST_LIBS lemon) |
86 |
96 |
87 IF(LEMON_HAVE_GLPK) |
97 IF(LEMON_HAVE_GLPK) |
88 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) |
98 SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES}) |
89 ENDIF() |
99 ENDIF() |
115 ) |
125 ) |
116 ENDIF() |
126 ENDIF() |
117 ENDIF() |
127 ENDIF() |
118 |
128 |
119 FOREACH(TEST_NAME ${TESTS}) |
129 FOREACH(TEST_NAME ${TESTS}) |
120 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) |
130 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") |
|
131 ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cc) |
|
132 ELSE() |
|
133 ADD_EXECUTABLE(${TEST_NAME} EXCLUDE_FROM_ALL ${TEST_NAME}.cc) |
|
134 ENDIF() |
121 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) |
135 TARGET_LINK_LIBRARIES(${TEST_NAME} lemon) |
122 ADD_TEST(${TEST_NAME} ${TEST_NAME}) |
136 ADD_TEST(${TEST_NAME} ${TEST_NAME}) |
|
137 ADD_DEPENDENCIES(check ${TEST_NAME}) |
123 ENDFOREACH() |
138 ENDFOREACH() |