test/CMakeLists.txt
changeset 1019 234d635ad721
parent 1017 5087694945e4
parent 1013 48e29534cf03
child 1021 4980b05606bd
equal deleted inserted replaced
48:63b346fec0c0 49:e26c6f0ced13
    45   time_measure_test
    45   time_measure_test
    46   unionfind_test
    46   unionfind_test
    47 )
    47 )
    48 
    48 
    49 IF(LEMON_HAVE_LP)
    49 IF(LEMON_HAVE_LP)
    50   ADD_EXECUTABLE(lp_test lp_test.cc)
    50   IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
       
    51     ADD_EXECUTABLE(lp_test lp_test.cc)
       
    52   ELSE()
       
    53     ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
       
    54   ENDIF()
       
    55 
    51   SET(LP_TEST_LIBS lemon)
    56   SET(LP_TEST_LIBS lemon)
    52 
    57 
    53   IF(LEMON_HAVE_GLPK)
    58   IF(LEMON_HAVE_GLPK)
    54     SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
    59     SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${GLPK_LIBRARIES})
    55   ENDIF()
    60   ENDIF()
    81     )
    86     )
    82   ENDIF()
    87   ENDIF()
    83 ENDIF()
    88 ENDIF()
    84 
    89 
    85 IF(LEMON_HAVE_MIP)
    90 IF(LEMON_HAVE_MIP)
    86   ADD_EXECUTABLE(mip_test mip_test.cc)
    91   IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
       
    92     ADD_EXECUTABLE(mip_test mip_test.cc)
       
    93   ELSE()
       
    94     ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
       
    95   ENDIF()
       
    96 
    87   SET(MIP_TEST_LIBS lemon)
    97   SET(MIP_TEST_LIBS lemon)
    88 
    98 
    89   IF(LEMON_HAVE_GLPK)
    99   IF(LEMON_HAVE_GLPK)
    90     SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
   100     SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${GLPK_LIBRARIES})
    91   ENDIF()
   101   ENDIF()