Ignore:
Timestamp:
Dec 14, 2012 3:24:15 PM (7 years ago)
Author:
stefan
Message:

allow for several LP solvers in one SCIP library - yeah :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/SCIP/trunk/Makefile.am

    r2689 r2690  
    1010
    1111lib_LTLIBRARIES = libcoinscip.la
     12
     13AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/scip/src` $(SCIPLIB_CFLAGS)
     14
     15DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
     16
     17libcoinscip_la_LDFLAGS = $(LT_LDFLAGS)
    1218
    1319libcoinscip_la_SOURCES = \
     
    192198  scip/src/xml/xmlparse.c
    193199
    194 # add LP solver interface
    195 if SCIPLPI_SPX
    196   libcoinscip_la_SOURCES += scip/src/scip/lpi_spx.cpp
    197 endif
    198 if SCIPLPI_CLP
    199   libcoinscip_la_SOURCES += scip/src/scip/lpi_clp.cpp
    200 endif
    201 if SCIPLPI_CPX
    202   libcoinscip_la_SOURCES += scip/src/scip/lpi_cpx.c
    203 endif
    204 if SCIPLPI_MSK
    205   libcoinscip_la_SOURCES += scip/src/scip/lpi_msk.c
    206 endif
    207 if SCIPLPI_XPR
    208   libcoinscip_la_SOURCES += scip/src/scip/lpi_xprs.c
    209 endif
    210 if SCIPLPI_GRB
    211   libcoinscip_la_SOURCES += scip/src/scip/lpi_grb.c
    212 endif
    213 if SCIPLPI_QSO
    214   libcoinscip_la_SOURCES += scip/src/scip/lpi_qso.c
    215 endif
    216 if SCIPLPI_NONE
    217   libcoinscip_la_SOURCES += scip/src/scip/lpi_none.c
    218 endif
     200# add LP solver interfaces
     201libcoinscip_la_SOURCES += lpiswitch.c lpiswitch_init.cpp lpiswitch_none.c
     202if COIN_HAS_SOPLEX
     203  libcoinscip_la_SOURCES += lpiswitch_spx.cpp
     204endif 
     205if COIN_HAS_CLP
     206  libcoinscip_la_SOURCES += lpiswitch_clp.cpp
     207endif
     208if COIN_HAS_CPX
     209  libcoinscip_la_SOURCES += lpiswitch_cpx.c
     210  AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)`
     211endif
     212if COIN_HAS_MSK
     213  libcoinscip_la_SOURCES += lpiswitch_msk.c
     214  AM_CPPFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)`
     215endif
     216if COIN_HAS_XPR
     217  libcoinscip_la_SOURCES += lpiswitch_xprs.c
     218  AM_CPPFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)`
     219endif
     220if COIN_HAS_GRB
     221  libcoinscip_la_SOURCES += lpiswitch_grb.c
     222  AM_CPPFLAGS += -I`$(CYGPATH_W) $(GRBINCDIR)`
     223endif
     224if COIN_HAS_QSO
     225  libcoinscip_la_SOURCES += lpiswitch_qso.c
     226  AM_CPPFLAGS += -I`$(CYGPATH_W) $(QSOINCDIR)`
     227endif
     228
    219229
    220230# add IPOPT as nonlinear solver, if available
     
    225235endif
    226236
    227 AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/scip/src` $(SCIPLIB_CFLAGS)
    228 
    229 DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
    230 
    231 libcoinscip_la_LDFLAGS = $(LT_LDFLAGS)
     237thirdpartyincludedir = $(includedir)/coin/ThirdParty
     238thirdpartyinclude_HEADERS = lpiswitch.h
    232239
    233240thirdpartyscipincludedir = $(includedir)/coin/ThirdParty/scip
Note: See TracChangeset for help on using the changeset viewer.