COIN-OR::LEMON - Graph Library

source: lemon-main/cmake/FindCOIN.cmake @ 952:98961d3556a7

Last change on this file since 952:98961d3556a7 was 947:0dba9b96550a, checked in by Alpar Juttner <alpar@…>, 13 years ago

Do not look for COIN_VOL libraries

File size: 2.4 KB
RevLine 
[621]1SET(COIN_ROOT_DIR "" CACHE PATH "COIN root directory")
2
3FIND_PATH(COIN_INCLUDE_DIR coin/CoinUtilsConfig.h
[634]4  HINTS ${COIN_ROOT_DIR}/include
5)
6FIND_LIBRARY(COIN_CBC_LIBRARY
7  NAMES Cbc libCbc
[946]8  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]9  HINTS ${COIN_ROOT_DIR}/lib
10)
11FIND_LIBRARY(COIN_CBC_SOLVER_LIBRARY
12  NAMES CbcSolver libCbcSolver
[946]13  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]14  HINTS ${COIN_ROOT_DIR}/lib
15)
16FIND_LIBRARY(COIN_CGL_LIBRARY
17  NAMES Cgl libCgl
[946]18  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]19  HINTS ${COIN_ROOT_DIR}/lib
20)
21FIND_LIBRARY(COIN_CLP_LIBRARY
22  NAMES Clp libClp
[946]23  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]24  HINTS ${COIN_ROOT_DIR}/lib
25)
26FIND_LIBRARY(COIN_COIN_UTILS_LIBRARY
27  NAMES CoinUtils libCoinUtils
[946]28  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]29  HINTS ${COIN_ROOT_DIR}/lib
30)
31FIND_LIBRARY(COIN_OSI_LIBRARY
32  NAMES Osi libOsi
[946]33  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]34  HINTS ${COIN_ROOT_DIR}/lib
35)
36FIND_LIBRARY(COIN_OSI_CBC_LIBRARY
37  NAMES OsiCbc libOsiCbc
[946]38  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]39  HINTS ${COIN_ROOT_DIR}/lib
40)
41FIND_LIBRARY(COIN_OSI_CLP_LIBRARY
42  NAMES OsiClp libOsiClp
[946]43  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]44  HINTS ${COIN_ROOT_DIR}/lib
45)
46FIND_LIBRARY(COIN_OSI_VOL_LIBRARY
47  NAMES OsiVol libOsiVol
[946]48  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]49  HINTS ${COIN_ROOT_DIR}/lib
50)
51FIND_LIBRARY(COIN_VOL_LIBRARY
52  NAMES Vol libVol
[946]53  HINTS ${COIN_ROOT_DIR}/lib/coin
[634]54  HINTS ${COIN_ROOT_DIR}/lib
55)
[621]56
57INCLUDE(FindPackageHandleStandardArgs)
58FIND_PACKAGE_HANDLE_STANDARD_ARGS(COIN DEFAULT_MSG
59  COIN_INCLUDE_DIR
60  COIN_CBC_LIBRARY
61  COIN_CBC_SOLVER_LIBRARY
62  COIN_CGL_LIBRARY
63  COIN_CLP_LIBRARY
64  COIN_COIN_UTILS_LIBRARY
65  COIN_OSI_LIBRARY
66  COIN_OSI_CBC_LIBRARY
67  COIN_OSI_CLP_LIBRARY
[947]68  # COIN_OSI_VOL_LIBRARY
69  # COIN_VOL_LIBRARY
[621]70)
71
72IF(COIN_FOUND)
73  SET(COIN_INCLUDE_DIRS ${COIN_INCLUDE_DIR})
[947]74  SET(COIN_LIBRARIES "${COIN_CBC_LIBRARY};${COIN_CBC_SOLVER_LIBRARY};${COIN_CGL_LIBRARY};${COIN_CLP_LIBRARY};${COIN_COIN_UTILS_LIBRARY};${COIN_OSI_LIBRARY};${COIN_OSI_CBC_LIBRARY};${COIN_OSI_CLP_LIBRARY}")
[621]75  SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARY};${COIN_COIN_UTILS_LIBRARY}")
76  SET(COIN_CBC_LIBRARIES ${COIN_LIBRARIES})
77ENDIF(COIN_FOUND)
78
79MARK_AS_ADVANCED(
80  COIN_INCLUDE_DIR
81  COIN_CBC_LIBRARY
82  COIN_CBC_SOLVER_LIBRARY
83  COIN_CGL_LIBRARY
84  COIN_CLP_LIBRARY
85  COIN_COIN_UTILS_LIBRARY
86  COIN_OSI_LIBRARY
87  COIN_OSI_CBC_LIBRARY
88  COIN_OSI_CLP_LIBRARY
89  COIN_OSI_VOL_LIBRARY
90  COIN_VOL_LIBRARY
91)
92
93IF(COIN_FOUND)
[627]94  SET(LEMON_HAVE_LP TRUE)
95  SET(LEMON_HAVE_MIP TRUE)
96  SET(LEMON_HAVE_CLP TRUE)
97  SET(LEMON_HAVE_CBC TRUE)
[621]98ENDIF(COIN_FOUND)
Note: See TracBrowser for help on using the repository browser.