COIN-OR::LEMON - Graph Library

Changeset 621:b536eaacb39b in lemon-main


Ignore:
Timestamp:
04/23/09 08:30:40 (16 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

FindCOIN for CMake (#256)

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r620 r621  
    1616FIND_PACKAGE(GLPK 4.33)
    1717FIND_PACKAGE(CPLEX)
     18FIND_PACKAGE(COIN)
    1819
    1920ADD_DEFINITIONS(-DHAVE_CONFIG_H)
  • lemon/CMakeLists.txt

    r620 r621  
    3434ENDIF(HAVE_CPLEX)
    3535
     36IF(HAVE_CLP)
     37  SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
     38  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
     39ENDIF(HAVE_CLP)
     40
     41IF(HAVE_CBC)
     42  SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
     43  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
     44ENDIF(HAVE_CBC)
     45
    3646ADD_LIBRARY(lemon ${LEMON_SOURCES})
    3747
  • lemon/config.h.cmake

    r620 r621  
    44#cmakedefine HAVE_GLPK 1
    55#cmakedefine HAVE_CPLEX 1
     6#cmakedefine HAVE_CLP 1
     7#cmakedefine HAVE_CBC 1
  • test/CMakeLists.txt

    r620 r621  
    4646    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${CPLEX_LIBRARIES})
    4747  ENDIF(HAVE_CPLEX)
     48  IF(HAVE_CLP)
     49    SET(LP_TEST_LIBS ${LP_TEST_LIBS} ${COIN_CLP_LIBRARIES})
     50  ENDIF(HAVE_CLP)
    4851  TARGET_LINK_LIBRARIES(lp_test ${LP_TEST_LIBS})
    4952  ADD_TEST(lp_test lp_test)
     
    7679    SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${CPLEX_LIBRARIES})
    7780  ENDIF(HAVE_CPLEX)
     81  IF(HAVE_CBC)
     82    SET(MIP_TEST_LIBS ${MIP_TEST_LIBS} ${COIN_CBC_LIBRARIES})
     83  ENDIF(HAVE_CBC)
    7884  TARGET_LINK_LIBRARIES(mip_test ${MIP_TEST_LIBS})
    7985  ADD_TEST(mip_test mip_test)
Note: See TracChangeset for help on using the changeset viewer.