COIN-OR::LEMON - Graph Library

Changeset 1264:4000b7ef4e01 in lemon for CMakeLists.txt


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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.