author | Balazs Dezso <deba@google.com> |
Fri, 22 Jan 2021 10:55:32 +0100 | |
changeset 1208 | c6aa2cc1af04 |
parent 1064 | fc3854d936f7 |
permissions | -rw-r--r-- |
ladanyi@621 | 1 |
SET(COIN_ROOT_DIR "" CACHE PATH "COIN root directory") |
ladanyi@621 | 2 |
|
ladanyi@621 | 3 |
FIND_PATH(COIN_INCLUDE_DIR coin/CoinUtilsConfig.h |
ladanyi@634 | 4 |
HINTS ${COIN_ROOT_DIR}/include |
ladanyi@634 | 5 |
) |
ladanyi@634 | 6 |
FIND_LIBRARY(COIN_CBC_LIBRARY |
ladanyi@634 | 7 |
NAMES Cbc libCbc |
alpar@946 | 8 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 9 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 10 |
) |
ladanyi@634 | 11 |
FIND_LIBRARY(COIN_CBC_SOLVER_LIBRARY |
ladanyi@634 | 12 |
NAMES CbcSolver libCbcSolver |
alpar@946 | 13 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 14 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 15 |
) |
ladanyi@634 | 16 |
FIND_LIBRARY(COIN_CGL_LIBRARY |
ladanyi@634 | 17 |
NAMES Cgl libCgl |
alpar@946 | 18 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 19 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 20 |
) |
ladanyi@634 | 21 |
FIND_LIBRARY(COIN_CLP_LIBRARY |
ladanyi@634 | 22 |
NAMES Clp libClp |
alpar@946 | 23 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 24 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 25 |
) |
ladanyi@634 | 26 |
FIND_LIBRARY(COIN_COIN_UTILS_LIBRARY |
ladanyi@634 | 27 |
NAMES CoinUtils libCoinUtils |
alpar@946 | 28 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 29 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 30 |
) |
ladanyi@634 | 31 |
FIND_LIBRARY(COIN_OSI_LIBRARY |
ladanyi@634 | 32 |
NAMES Osi libOsi |
alpar@946 | 33 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 34 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 35 |
) |
ladanyi@634 | 36 |
FIND_LIBRARY(COIN_OSI_CBC_LIBRARY |
ladanyi@634 | 37 |
NAMES OsiCbc libOsiCbc |
alpar@946 | 38 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 39 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 40 |
) |
ladanyi@634 | 41 |
FIND_LIBRARY(COIN_OSI_CLP_LIBRARY |
ladanyi@634 | 42 |
NAMES OsiClp libOsiClp |
alpar@946 | 43 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 44 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 45 |
) |
ladanyi@634 | 46 |
FIND_LIBRARY(COIN_OSI_VOL_LIBRARY |
ladanyi@634 | 47 |
NAMES OsiVol libOsiVol |
alpar@946 | 48 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 49 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 50 |
) |
ladanyi@634 | 51 |
FIND_LIBRARY(COIN_VOL_LIBRARY |
ladanyi@634 | 52 |
NAMES Vol libVol |
alpar@946 | 53 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
ladanyi@634 | 54 |
HINTS ${COIN_ROOT_DIR}/lib |
ladanyi@634 | 55 |
) |
ladanyi@621 | 56 |
|
alpar@973 | 57 |
FIND_LIBRARY(COIN_ZLIB_LIBRARY |
alpar@973 | 58 |
NAMES z libz |
alpar@973 | 59 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
alpar@973 | 60 |
HINTS ${COIN_ROOT_DIR}/lib |
alpar@973 | 61 |
) |
alpar@973 | 62 |
FIND_LIBRARY(COIN_BZ2_LIBRARY |
alpar@973 | 63 |
NAMES bz2 libbz2 |
alpar@973 | 64 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
alpar@973 | 65 |
HINTS ${COIN_ROOT_DIR}/lib |
alpar@973 | 66 |
) |
alpar@973 | 67 |
|
alpar@1180 | 68 |
FIND_LIBRARY(COIN_PTHREADS_LIBRARY |
alpar@1180 | 69 |
NAMES pthreads libpthreads |
alpar@1180 | 70 |
HINTS ${COIN_ROOT_DIR}/lib/coin |
alpar@1180 | 71 |
HINTS ${COIN_ROOT_DIR}/lib |
alpar@1180 | 72 |
) |
alpar@1180 | 73 |
|
ladanyi@621 | 74 |
INCLUDE(FindPackageHandleStandardArgs) |
ladanyi@621 | 75 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(COIN DEFAULT_MSG |
ladanyi@621 | 76 |
COIN_INCLUDE_DIR |
ladanyi@621 | 77 |
COIN_CBC_LIBRARY |
ladanyi@621 | 78 |
COIN_CBC_SOLVER_LIBRARY |
ladanyi@621 | 79 |
COIN_CGL_LIBRARY |
ladanyi@621 | 80 |
COIN_CLP_LIBRARY |
ladanyi@621 | 81 |
COIN_COIN_UTILS_LIBRARY |
ladanyi@621 | 82 |
COIN_OSI_LIBRARY |
ladanyi@621 | 83 |
COIN_OSI_CBC_LIBRARY |
ladanyi@621 | 84 |
COIN_OSI_CLP_LIBRARY |
alpar@947 | 85 |
# COIN_OSI_VOL_LIBRARY |
alpar@947 | 86 |
# COIN_VOL_LIBRARY |
ladanyi@621 | 87 |
) |
ladanyi@621 | 88 |
|
ladanyi@621 | 89 |
IF(COIN_FOUND) |
ladanyi@621 | 90 |
SET(COIN_INCLUDE_DIRS ${COIN_INCLUDE_DIR}) |
alpar@1180 | 91 |
SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARY};${COIN_COIN_UTILS_LIBRARY}") |
alpar@973 | 92 |
IF(COIN_ZLIB_LIBRARY) |
alpar@973 | 93 |
SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARIES};${COIN_ZLIB_LIBRARY}") |
alpar@973 | 94 |
ENDIF(COIN_ZLIB_LIBRARY) |
alpar@973 | 95 |
IF(COIN_BZ2_LIBRARY) |
alpar@973 | 96 |
SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARIES};${COIN_BZ2_LIBRARY}") |
alpar@973 | 97 |
ENDIF(COIN_BZ2_LIBRARY) |
alpar@1180 | 98 |
IF(COIN_PTHREADS_LIBRARY) |
alpar@1180 | 99 |
SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARIES};${COIN_PTHREADS_LIBRARY}") |
alpar@1180 | 100 |
ENDIF(COIN_PTHREADS_LIBRARY) |
alpar@1180 | 101 |
SET(COIN_CBC_LIBRARIES "${COIN_CBC_LIBRARY};${COIN_CBC_SOLVER_LIBRARY};${COIN_CGL_LIBRARY};${COIN_OSI_LIBRARY};${COIN_OSI_CBC_LIBRARY};${COIN_OSI_CLP_LIBRARY};${COIN_CLP_LIBRARIES}") |
alpar@973 | 102 |
SET(COIN_LIBRARIES ${COIN_CBC_LIBRARIES}) |
ladanyi@621 | 103 |
ENDIF(COIN_FOUND) |
ladanyi@621 | 104 |
|
ladanyi@621 | 105 |
MARK_AS_ADVANCED( |
ladanyi@621 | 106 |
COIN_INCLUDE_DIR |
ladanyi@621 | 107 |
COIN_CBC_LIBRARY |
ladanyi@621 | 108 |
COIN_CBC_SOLVER_LIBRARY |
ladanyi@621 | 109 |
COIN_CGL_LIBRARY |
ladanyi@621 | 110 |
COIN_CLP_LIBRARY |
ladanyi@621 | 111 |
COIN_COIN_UTILS_LIBRARY |
ladanyi@621 | 112 |
COIN_OSI_LIBRARY |
ladanyi@621 | 113 |
COIN_OSI_CBC_LIBRARY |
ladanyi@621 | 114 |
COIN_OSI_CLP_LIBRARY |
ladanyi@621 | 115 |
COIN_OSI_VOL_LIBRARY |
ladanyi@621 | 116 |
COIN_VOL_LIBRARY |
alpar@973 | 117 |
COIN_ZLIB_LIBRARY |
alpar@973 | 118 |
COIN_BZ2_LIBRARY |
ladanyi@621 | 119 |
) |