The deafult target doesn't build lp_test and mip_test (#388)
authorAlpar Juttner <alpar@cs.elte.hu>
Wed, 27 Oct 2010 12:30:59 +0200
changeset 101348e29534cf03
parent 1012 10242c611190
child 1014 0fbbdd578c06
The deafult target doesn't build lp_test and mip_test (#388)
test/CMakeLists.txt
     1.1 --- a/test/CMakeLists.txt	Sun Sep 26 16:17:33 2010 +0200
     1.2 +++ b/test/CMakeLists.txt	Wed Oct 27 12:30:59 2010 +0200
     1.3 @@ -46,7 +46,12 @@
     1.4  )
     1.5  
     1.6  IF(LEMON_HAVE_LP)
     1.7 -  ADD_EXECUTABLE(lp_test lp_test.cc)
     1.8 +  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
     1.9 +    ADD_EXECUTABLE(lp_test lp_test.cc)
    1.10 +  ELSE()
    1.11 +    ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
    1.12 +  ENDIF()
    1.13 +
    1.14    SET(LP_TEST_LIBS lemon)
    1.15  
    1.16    IF(LEMON_HAVE_GLPK)
    1.17 @@ -82,7 +87,12 @@
    1.18  ENDIF()
    1.19  
    1.20  IF(LEMON_HAVE_MIP)
    1.21 -  ADD_EXECUTABLE(mip_test mip_test.cc)
    1.22 +  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
    1.23 +    ADD_EXECUTABLE(mip_test mip_test.cc)
    1.24 +  ELSE()
    1.25 +    ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
    1.26 +  ENDIF()
    1.27 +
    1.28    SET(MIP_TEST_LIBS lemon)
    1.29  
    1.30    IF(LEMON_HAVE_GLPK)