COIN-OR::LEMON - Graph Library

Changeset 1264:4000b7ef4e01 in lemon


Ignore:
Timestamp:
03/28/13 14:52:43 (7 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Add cmake config to find SoPlex? (#460)

Based on the patch sent by ax487

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r1234 r1264  
    6666SET(LEMON_ENABLE_ILOG YES CACHE STRING "Enable ILOG (CPLEX) solver backend.")
    6767SET(LEMON_ENABLE_COIN YES CACHE STRING "Enable COIN solver backend.")
     68SET(LEMON_ENABLE_SOPLEX YES CACHE STRING "Enable SoPlex solver backend.")
    6869
    6970IF(LEMON_ENABLE_GLPK)
     
    7677  FIND_PACKAGE(COIN)
    7778ENDIF(LEMON_ENABLE_COIN)
     79IF(LEMON_ENABLE_SOPLEX)
     80  FIND_PACKAGE(SOPLEX)
     81ENDIF(LEMON_ENABLE_SOPLEX)
    7882
    7983IF(GLPK_FOUND)
     
    9397  SET(LEMON_HAVE_CBC TRUE)
    9498ENDIF(COIN_FOUND)
     99IF(SOPLEX_FOUND)
     100  SET(LEMON_HAVE_LP TRUE)
     101  SET(LEMON_HAVE_SOPLEX TRUE)
     102ENDIF(SOPLEX_FOUND)
    95103
    96104IF(ILOG_FOUND)
     
    103111  SET(DEFAULT_LP "GLPK")
    104112  SET(DEFAULT_MIP "GLPK")
     113ELSEIF(SOPLEX_FOUND)
     114  SET(DEFAULT_LP "SOPLEX")
    105115ENDIF()
    106116
     
    108118    (NOT ILOG_FOUND AND (LEMON_DEFAULT_LP STREQUAL "CPLEX")) OR
    109119    (NOT COIN_FOUND AND (LEMON_DEFAULT_LP STREQUAL "CLP")) OR
    110     (NOT GLPK_FOUND AND (LEMON_DEFAULT_LP STREQUAL "GLPK")))
     120    (NOT GLPK_FOUND AND (LEMON_DEFAULT_LP STREQUAL "GLPK")) OR
     121    (NOT SOPLEX_FOUND AND (LEMON_DEFAULT_LP STREQUAL "SOPLEX")))
    111122  SET(LEMON_DEFAULT_LP ${DEFAULT_LP} CACHE STRING
    112     "Default LP solver backend (GLPK, CPLEX or CLP)" FORCE)
     123    "Default LP solver backend (GLPK, CPLEX, CLP or SOPLEX)" FORCE)
    113124ENDIF()
    114125IF(NOT LEMON_DEFAULT_MIP OR
  • lemon/CMakeLists.txt

    r1230 r1264  
    5050ENDIF()
    5151
     52IF(LEMON_HAVE_SOPLEX)
     53  SET(LEMON_SOURCES ${LEMON_SOURCES} soplex.cc)
     54  INCLUDE_DIRECTORIES(${SOPLEX_INCLUDE_DIRS})
     55ENDIF()
     56
    5257ADD_LIBRARY(lemon ${LEMON_SOURCES})
    5358IF(UNIX)
  • lemon/config.h.in

    r1232 r1264  
    55#cmakedefine LEMON_HAVE_GLPK 1
    66#cmakedefine LEMON_HAVE_CPLEX 1
     7#cmakedefine LEMON_HAVE_SOPLEX 1
    78#cmakedefine LEMON_HAVE_CLP 1
    89#cmakedefine LEMON_HAVE_CBC 1
  • test/CMakeLists.txt

    r1233 r1264  
    7474  IF(LEMON_HAVE_CLP)
    7575    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
     76  ENDIF()
     77  IF(LEMON_HAVE_SOPLEX)
     78    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${SOPLEX_LIBRARIES})
    7679  ENDIF()
    7780
Note: See TracChangeset for help on using the changeset viewer.