ladanyi@613: SET(COIN_ROOT_DIR "" CACHE PATH "COIN root directory") ladanyi@613: ladanyi@613: FIND_PATH(COIN_INCLUDE_DIR coin/CoinUtilsConfig.h ladanyi@613: PATHS ${COIN_ROOT_DIR}/include) ladanyi@613: ladanyi@613: FIND_LIBRARY(COIN_CBC_LIBRARY libCbc ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_CBC_SOLVER_LIBRARY libCbcSolver ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_CGL_LIBRARY libCgl ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_CLP_LIBRARY libClp ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_COIN_UTILS_LIBRARY libCoinUtils ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_OSI_LIBRARY libOsi ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_OSI_CBC_LIBRARY libOsiCbc ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_OSI_CLP_LIBRARY libOsiClp ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_OSI_VOL_LIBRARY libOsiVol ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: FIND_LIBRARY(COIN_VOL_LIBRARY libVol ladanyi@613: PATHS ${COIN_ROOT_DIR}/lib) ladanyi@613: ladanyi@613: INCLUDE(FindPackageHandleStandardArgs) ladanyi@613: FIND_PACKAGE_HANDLE_STANDARD_ARGS(COIN DEFAULT_MSG ladanyi@613: COIN_INCLUDE_DIR ladanyi@613: COIN_CBC_LIBRARY ladanyi@613: COIN_CBC_SOLVER_LIBRARY ladanyi@613: COIN_CGL_LIBRARY ladanyi@613: COIN_CLP_LIBRARY ladanyi@613: COIN_COIN_UTILS_LIBRARY ladanyi@613: COIN_OSI_LIBRARY ladanyi@613: COIN_OSI_CBC_LIBRARY ladanyi@613: COIN_OSI_CLP_LIBRARY ladanyi@613: COIN_OSI_VOL_LIBRARY ladanyi@613: COIN_VOL_LIBRARY ladanyi@613: ) ladanyi@613: ladanyi@613: IF(COIN_FOUND) ladanyi@613: SET(COIN_INCLUDE_DIRS ${COIN_INCLUDE_DIR}) ladanyi@613: 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}") ladanyi@613: SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARY};${COIN_COIN_UTILS_LIBRARY}") ladanyi@613: SET(COIN_CBC_LIBRARIES ${COIN_LIBRARIES}) ladanyi@613: ENDIF(COIN_FOUND) ladanyi@613: ladanyi@613: MARK_AS_ADVANCED( ladanyi@613: COIN_INCLUDE_DIR ladanyi@613: COIN_CBC_LIBRARY ladanyi@613: COIN_CBC_SOLVER_LIBRARY ladanyi@613: COIN_CGL_LIBRARY ladanyi@613: COIN_CLP_LIBRARY ladanyi@613: COIN_COIN_UTILS_LIBRARY ladanyi@613: COIN_OSI_LIBRARY ladanyi@613: COIN_OSI_CBC_LIBRARY ladanyi@613: COIN_OSI_CLP_LIBRARY ladanyi@613: COIN_OSI_VOL_LIBRARY ladanyi@613: COIN_VOL_LIBRARY ladanyi@613: ) ladanyi@613: ladanyi@613: IF(COIN_FOUND) ladanyi@622: SET(LEMON_HAVE_LP TRUE) ladanyi@622: SET(LEMON_HAVE_MIP TRUE) ladanyi@622: SET(LEMON_HAVE_CLP TRUE) ladanyi@622: SET(LEMON_HAVE_CBC TRUE) ladanyi@613: ENDIF(COIN_FOUND)