1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/cmake/FindCOIN.cmake Thu Nov 05 15:48:01 2009 +0100
1.3 @@ -0,0 +1,88 @@
1.4 +SET(COIN_ROOT_DIR "" CACHE PATH "COIN root directory")
1.5 +
1.6 +FIND_PATH(COIN_INCLUDE_DIR coin/CoinUtilsConfig.h
1.7 + HINTS ${COIN_ROOT_DIR}/include
1.8 +)
1.9 +FIND_LIBRARY(COIN_CBC_LIBRARY
1.10 + NAMES Cbc libCbc
1.11 + HINTS ${COIN_ROOT_DIR}/lib
1.12 +)
1.13 +FIND_LIBRARY(COIN_CBC_SOLVER_LIBRARY
1.14 + NAMES CbcSolver libCbcSolver
1.15 + HINTS ${COIN_ROOT_DIR}/lib
1.16 +)
1.17 +FIND_LIBRARY(COIN_CGL_LIBRARY
1.18 + NAMES Cgl libCgl
1.19 + HINTS ${COIN_ROOT_DIR}/lib
1.20 +)
1.21 +FIND_LIBRARY(COIN_CLP_LIBRARY
1.22 + NAMES Clp libClp
1.23 + HINTS ${COIN_ROOT_DIR}/lib
1.24 +)
1.25 +FIND_LIBRARY(COIN_COIN_UTILS_LIBRARY
1.26 + NAMES CoinUtils libCoinUtils
1.27 + HINTS ${COIN_ROOT_DIR}/lib
1.28 +)
1.29 +FIND_LIBRARY(COIN_OSI_LIBRARY
1.30 + NAMES Osi libOsi
1.31 + HINTS ${COIN_ROOT_DIR}/lib
1.32 +)
1.33 +FIND_LIBRARY(COIN_OSI_CBC_LIBRARY
1.34 + NAMES OsiCbc libOsiCbc
1.35 + HINTS ${COIN_ROOT_DIR}/lib
1.36 +)
1.37 +FIND_LIBRARY(COIN_OSI_CLP_LIBRARY
1.38 + NAMES OsiClp libOsiClp
1.39 + HINTS ${COIN_ROOT_DIR}/lib
1.40 +)
1.41 +FIND_LIBRARY(COIN_OSI_VOL_LIBRARY
1.42 + NAMES OsiVol libOsiVol
1.43 + HINTS ${COIN_ROOT_DIR}/lib
1.44 +)
1.45 +FIND_LIBRARY(COIN_VOL_LIBRARY
1.46 + NAMES Vol libVol
1.47 + HINTS ${COIN_ROOT_DIR}/lib
1.48 +)
1.49 +
1.50 +INCLUDE(FindPackageHandleStandardArgs)
1.51 +FIND_PACKAGE_HANDLE_STANDARD_ARGS(COIN DEFAULT_MSG
1.52 + COIN_INCLUDE_DIR
1.53 + COIN_CBC_LIBRARY
1.54 + COIN_CBC_SOLVER_LIBRARY
1.55 + COIN_CGL_LIBRARY
1.56 + COIN_CLP_LIBRARY
1.57 + COIN_COIN_UTILS_LIBRARY
1.58 + COIN_OSI_LIBRARY
1.59 + COIN_OSI_CBC_LIBRARY
1.60 + COIN_OSI_CLP_LIBRARY
1.61 + COIN_OSI_VOL_LIBRARY
1.62 + COIN_VOL_LIBRARY
1.63 +)
1.64 +
1.65 +IF(COIN_FOUND)
1.66 + SET(COIN_INCLUDE_DIRS ${COIN_INCLUDE_DIR})
1.67 + 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};${COIN_OSI_VOL_LIBRARY};${COIN_VOL_LIBRARY}")
1.68 + SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARY};${COIN_COIN_UTILS_LIBRARY}")
1.69 + SET(COIN_CBC_LIBRARIES ${COIN_LIBRARIES})
1.70 +ENDIF(COIN_FOUND)
1.71 +
1.72 +MARK_AS_ADVANCED(
1.73 + COIN_INCLUDE_DIR
1.74 + COIN_CBC_LIBRARY
1.75 + COIN_CBC_SOLVER_LIBRARY
1.76 + COIN_CGL_LIBRARY
1.77 + COIN_CLP_LIBRARY
1.78 + COIN_COIN_UTILS_LIBRARY
1.79 + COIN_OSI_LIBRARY
1.80 + COIN_OSI_CBC_LIBRARY
1.81 + COIN_OSI_CLP_LIBRARY
1.82 + COIN_OSI_VOL_LIBRARY
1.83 + COIN_VOL_LIBRARY
1.84 +)
1.85 +
1.86 +IF(COIN_FOUND)
1.87 + SET(LEMON_HAVE_LP TRUE)
1.88 + SET(LEMON_HAVE_MIP TRUE)
1.89 + SET(LEMON_HAVE_CLP TRUE)
1.90 + SET(LEMON_HAVE_CBC TRUE)
1.91 +ENDIF(COIN_FOUND)