COIN-OR::LEMON - Graph Library

Ticket #388: 48e29534cf03.patch

File 48e29534cf03.patch, 974 bytes (added by Alpar Juttner, 14 years ago)
  • test/CMakeLists.txt

    # HG changeset patch
    # User Alpar Juttner <alpar@cs.elte.hu>
    # Date 1288175459 -7200
    # Node ID 48e29534cf032c7fa16bbddbe6123034b43fefec
    # Parent  10242c6111900376d7d913923eaf94f61b13d05c
    The deafult target doesn't build lp_test and mip_test (#388)
    
    diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
    a b  
    4646)
    4747
    4848IF(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
    5055  SET(LP_TEST_LIBS lemon)
    5156
    5257  IF(LEMON_HAVE_GLPK)
     
    8287ENDIF()
    8388
    8489IF(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
    8696  SET(MIP_TEST_LIBS lemon)
    8797
    8898  IF(LEMON_HAVE_GLPK)