CMakeLists.txt
changeset 1182 6b79d93e812f
parent 1137 ca4e4a5e9b6e
child 1185 c8d0179a32a2
child 1197 f179aa1045a4
equal deleted inserted replaced
72:353a9621b186 74:1aa034c933c9
    80 SET(LEMON_ENABLE_COIN YES CACHE STRING "Enable COIN solver backend.")
    80 SET(LEMON_ENABLE_COIN YES CACHE STRING "Enable COIN solver backend.")
    81 SET(LEMON_ENABLE_SOPLEX YES CACHE STRING "Enable SoPlex solver backend.")
    81 SET(LEMON_ENABLE_SOPLEX YES CACHE STRING "Enable SoPlex solver backend.")
    82 
    82 
    83 IF(LEMON_ENABLE_GLPK) 
    83 IF(LEMON_ENABLE_GLPK) 
    84   FIND_PACKAGE(GLPK 4.33)
    84   FIND_PACKAGE(GLPK 4.33)
       
    85   IF(GLPK_FOUND)
       
    86     SET(LEMON_HAVE_LP TRUE)
       
    87     SET(LEMON_HAVE_MIP TRUE)
       
    88     SET(LEMON_HAVE_GLPK TRUE)
       
    89   ENDIF(GLPK_FOUND)
    85 ENDIF(LEMON_ENABLE_GLPK)
    90 ENDIF(LEMON_ENABLE_GLPK)
    86 IF(LEMON_ENABLE_ILOG)
    91 IF(LEMON_ENABLE_ILOG)
    87   FIND_PACKAGE(ILOG)
    92   FIND_PACKAGE(ILOG)
       
    93   IF(ILOG_FOUND)
       
    94     SET(LEMON_HAVE_LP TRUE)
       
    95     SET(LEMON_HAVE_MIP TRUE)
       
    96     SET(LEMON_HAVE_CPLEX TRUE)
       
    97   ENDIF(ILOG_FOUND)
    88 ENDIF(LEMON_ENABLE_ILOG)
    98 ENDIF(LEMON_ENABLE_ILOG)
    89 IF(LEMON_ENABLE_COIN)
    99 IF(LEMON_ENABLE_COIN)
    90   FIND_PACKAGE(COIN)
   100   FIND_PACKAGE(COIN)
       
   101   IF(COIN_FOUND)
       
   102     SET(LEMON_HAVE_LP TRUE)
       
   103     SET(LEMON_HAVE_MIP TRUE)
       
   104     SET(LEMON_HAVE_CLP TRUE)
       
   105     SET(LEMON_HAVE_CBC TRUE)
       
   106   ENDIF(COIN_FOUND)
    91 ENDIF(LEMON_ENABLE_COIN)
   107 ENDIF(LEMON_ENABLE_COIN)
    92 IF(LEMON_ENABLE_SOPLEX)
   108 IF(LEMON_ENABLE_SOPLEX)
    93   FIND_PACKAGE(SOPLEX)
   109   FIND_PACKAGE(SOPLEX)
       
   110   IF(SOPLEX_FOUND)
       
   111     SET(LEMON_HAVE_LP TRUE)
       
   112     SET(LEMON_HAVE_SOPLEX TRUE)
       
   113   ENDIF(SOPLEX_FOUND)
    94 ENDIF(LEMON_ENABLE_SOPLEX)
   114 ENDIF(LEMON_ENABLE_SOPLEX)
    95 
       
    96 IF(GLPK_FOUND)
       
    97   SET(LEMON_HAVE_LP TRUE)
       
    98   SET(LEMON_HAVE_MIP TRUE)
       
    99   SET(LEMON_HAVE_GLPK TRUE)
       
   100 ENDIF(GLPK_FOUND)
       
   101 IF(ILOG_FOUND)
       
   102   SET(LEMON_HAVE_LP TRUE)
       
   103   SET(LEMON_HAVE_MIP TRUE)
       
   104   SET(LEMON_HAVE_CPLEX TRUE)
       
   105 ENDIF(ILOG_FOUND)
       
   106 IF(COIN_FOUND)
       
   107   SET(LEMON_HAVE_LP TRUE)
       
   108   SET(LEMON_HAVE_MIP TRUE)
       
   109   SET(LEMON_HAVE_CLP TRUE)
       
   110   SET(LEMON_HAVE_CBC TRUE)
       
   111 ENDIF(COIN_FOUND)
       
   112 IF(SOPLEX_FOUND)
       
   113   SET(LEMON_HAVE_LP TRUE)
       
   114   SET(LEMON_HAVE_SOPLEX TRUE)
       
   115 ENDIF(SOPLEX_FOUND)
       
   116 
   115 
   117 IF(ILOG_FOUND)
   116 IF(ILOG_FOUND)
   118   SET(DEFAULT_LP "CPLEX")
   117   SET(DEFAULT_LP "CPLEX")
   119   SET(DEFAULT_MIP "CPLEX")
   118   SET(DEFAULT_MIP "CPLEX")
   120 ELSEIF(COIN_FOUND)
   119 ELSEIF(COIN_FOUND)