1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/cmake/FindCOIN.cmake Thu Apr 23 07:30:40 2009 +0100
1.3 @@ -0,0 +1,68 @@
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 + PATHS ${COIN_ROOT_DIR}/include)
1.8 +
1.9 +FIND_LIBRARY(COIN_CBC_LIBRARY libCbc
1.10 + PATHS ${COIN_ROOT_DIR}/lib)
1.11 +FIND_LIBRARY(COIN_CBC_SOLVER_LIBRARY libCbcSolver
1.12 + PATHS ${COIN_ROOT_DIR}/lib)
1.13 +FIND_LIBRARY(COIN_CGL_LIBRARY libCgl
1.14 + PATHS ${COIN_ROOT_DIR}/lib)
1.15 +FIND_LIBRARY(COIN_CLP_LIBRARY libClp
1.16 + PATHS ${COIN_ROOT_DIR}/lib)
1.17 +FIND_LIBRARY(COIN_COIN_UTILS_LIBRARY libCoinUtils
1.18 + PATHS ${COIN_ROOT_DIR}/lib)
1.19 +FIND_LIBRARY(COIN_OSI_LIBRARY libOsi
1.20 + PATHS ${COIN_ROOT_DIR}/lib)
1.21 +FIND_LIBRARY(COIN_OSI_CBC_LIBRARY libOsiCbc
1.22 + PATHS ${COIN_ROOT_DIR}/lib)
1.23 +FIND_LIBRARY(COIN_OSI_CLP_LIBRARY libOsiClp
1.24 + PATHS ${COIN_ROOT_DIR}/lib)
1.25 +FIND_LIBRARY(COIN_OSI_VOL_LIBRARY libOsiVol
1.26 + PATHS ${COIN_ROOT_DIR}/lib)
1.27 +FIND_LIBRARY(COIN_VOL_LIBRARY libVol
1.28 + PATHS ${COIN_ROOT_DIR}/lib)
1.29 +
1.30 +INCLUDE(FindPackageHandleStandardArgs)
1.31 +FIND_PACKAGE_HANDLE_STANDARD_ARGS(COIN DEFAULT_MSG
1.32 + COIN_INCLUDE_DIR
1.33 + COIN_CBC_LIBRARY
1.34 + COIN_CBC_SOLVER_LIBRARY
1.35 + COIN_CGL_LIBRARY
1.36 + COIN_CLP_LIBRARY
1.37 + COIN_COIN_UTILS_LIBRARY
1.38 + COIN_OSI_LIBRARY
1.39 + COIN_OSI_CBC_LIBRARY
1.40 + COIN_OSI_CLP_LIBRARY
1.41 + COIN_OSI_VOL_LIBRARY
1.42 + COIN_VOL_LIBRARY
1.43 +)
1.44 +
1.45 +IF(COIN_FOUND)
1.46 + SET(COIN_INCLUDE_DIRS ${COIN_INCLUDE_DIR})
1.47 + 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.48 + SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARY};${COIN_COIN_UTILS_LIBRARY}")
1.49 + SET(COIN_CBC_LIBRARIES ${COIN_LIBRARIES})
1.50 +ENDIF(COIN_FOUND)
1.51 +
1.52 +MARK_AS_ADVANCED(
1.53 + COIN_INCLUDE_DIR
1.54 + COIN_CBC_LIBRARY
1.55 + COIN_CBC_SOLVER_LIBRARY
1.56 + COIN_CGL_LIBRARY
1.57 + COIN_CLP_LIBRARY
1.58 + COIN_COIN_UTILS_LIBRARY
1.59 + COIN_OSI_LIBRARY
1.60 + COIN_OSI_CBC_LIBRARY
1.61 + COIN_OSI_CLP_LIBRARY
1.62 + COIN_OSI_VOL_LIBRARY
1.63 + COIN_VOL_LIBRARY
1.64 +)
1.65 +
1.66 +IF(COIN_FOUND)
1.67 + SET(HAVE_LP TRUE)
1.68 + SET(HAVE_MIP TRUE)
1.69 + SET(HAVE_CLP TRUE)
1.70 + SET(HAVE_CBC TRUE)
1.71 +ENDIF(COIN_FOUND)