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 16 line context
... ...
@@ -41,17 +41,22 @@
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()
... ...
@@ -77,17 +82,22 @@
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()
0 comments (0 inline)