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