gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
The deafult target doesn't build lp_test and mip_test (#388)
0 1 0
default
1 file changed with 12 insertions and 2 deletions:
↑ Collapse diff ↑
Ignore white space 24 line context
... ...
@@ -37,25 +37,30 @@
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
  ADD_EXECUTABLE(lp_test lp_test.cc)
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

	
... ...
@@ -73,25 +78,30 @@
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
  ADD_EXECUTABLE(mip_test mip_test.cc)
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

	
0 comments (0 inline)