Commit 14cec295 authored by David Bommes's avatar David Bommes

added additional Finder

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20600 383ad7c9-94d9-4d36-a494-682f7c89f535
parent beb4ffea
# - Try to find CBC
# Once done this will define
# CBC_FOUND - System has CBC
# CBC_INCLUDE_DIRS - The CBC include directories
# CBC_LIBRARIES - The libraries needed to use CBC
if (CBC_INCLUDE_DIR)
# in cache already
set(CBC_FOUND TRUE)
set(CBC_INCLUDE_DIRS "${CBC_INCLUDE_DIR}" )
set(CBC_LIBRARIES "${CBC_LIBRARY};${CBC_SOLVER_LIBRARY}" )
else (CBC_INCLUDE_DIR)
find_path(CBC_INCLUDE_DIR
NAMES CbcConfig.h
PATHS "$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\cbc\\include"
)
find_library( CBC_LIBRARY
NAMES Cbc
PATHS "$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cbc\\lib"
)
find_library( CBC_SOLVER_LIBRARY
NAMES CbcSolver
PATHS "$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cbc\\lib"
)
set(CBC_INCLUDE_DIRS "${CBC_INCLUDE_DIR}" )
set(CBC_LIBRARIES "${CBC_LIBRARY};${CBC_SOLVER_LIBRARY}" )
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set CBC_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(CBC DEFAULT_MSG
CBC_LIBRARY CBC_SOLVER_LIBRARY CBC_INCLUDE_DIR)
mark_as_advanced(CBC_INCLUDE_DIR CBC_LIBRARY CBC_SOLVER_LIBRARY)
endif(CBC_INCLUDE_DIR)
# - Try to find CGL
# Once done this will define
# CGL_FOUND - System has CGL
# CGL_INCLUDE_DIRS - The CGL include directories
# CGL_LIBRARIES - The libraries needed to use CGL
if (CGL_INCLUDE_DIR)
# in cache already
set(CGL_FOUND TRUE)
set(CGL_INCLUDE_DIRS "${CGL_INCLUDE_DIR}" )
set(CGL_LIBRARIES "${CGL_LIBRARY}" )
else (CGL_INCLUDE_DIR)
find_path(CGL_INCLUDE_DIR
NAMES CglConfig.h
PATHS "$ENV{CGL_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\cgl\\include"
"C:\\libs\\cbc\\include"
)
find_library( CGL_LIBRARY
NAMES Cgl
PATHS "$ENV{CGL_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cgl\\lib"
"C:\\libs\\cbc\\lib"
)
set(CGL_INCLUDE_DIRS "${CGL_INCLUDE_DIR}" )
set(CGL_LIBRARIES "${CGL_LIBRARY}" )
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set CGL_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(CGL DEFAULT_MSG
CGL_LIBRARY CGL_INCLUDE_DIR)
mark_as_advanced(CGL_INCLUDE_DIR CGL_LIBRARY)
endif(CGL_INCLUDE_DIR)
# - Try to find CLP
# Once done this will define
# CLP_FOUND - System has CLP
# CLP_INCLUDE_DIRS - The CLP include directories
# CLP_LIBRARIES - The libraries needed to use CLP
if (CLP_INCLUDE_DIR)
# in cache already
set(CLP_FOUND TRUE)
set(CLP_INCLUDE_DIRS "${CLP_INCLUDE_DIR}" )
set(CLP_LIBRARIES "${CLP_LIBRARY}" )
else (CLP_INCLUDE_DIR)
find_path(CLP_INCLUDE_DIR
NAMES ClpConfig.h
PATHS "$ENV{CLP_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\clp\\include"
"C:\\libs\\cbc\\include"
)
find_library( CLP_LIBRARY
NAMES Clp
PATHS "$ENV{CLP_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\clp\\lib"
"C:\\libs\\cbc\\lib"
)
set(CLP_INCLUDE_DIRS "${CLP_INCLUDE_DIR}" )
set(CLP_LIBRARIES "${CLP_LIBRARY}" )
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set CLP_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(CLP DEFAULT_MSG
CLP_LIBRARY CLP_INCLUDE_DIR)
mark_as_advanced(CLP_INCLUDE_DIR CLP_LIBRARY)
endif(CLP_INCLUDE_DIR)
# - Try to find COINUTILS
# Once done this will define
# COINUTILS_FOUND - System has COINUTILS
# COINUTILS_INCLUDE_DIRS - The COINUTILS include directories
# COINUTILS_LIBRARIES - The libraries needed to use COINUTILS
if (COINUTILS_INCLUDE_DIR)
# in cache already
set(COINUTILS_FOUND TRUE)
set(COINUTILS_INCLUDE_DIRS "${COINUTILS_INCLUDE_DIR}" )
set(COINUTILS_LIBRARIES "${COINUTILS_LIBRARY}" )
else (COINUTILS_INCLUDE_DIR)
find_path(COINUTILS_INCLUDE_DIR
NAMES CoinUtilsConfig.h
PATHS "$ENV{COINUTILS_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\coinutils\\include"
"C:\\libs\\cbc\\include"
)
find_library( COINUTILS_LIBRARY
NAMES CoinUtils
PATHS "$ENV{COINUTILS_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\coinutils\\lib"
"C:\\libs\\cbc\\lib"
)
set(COINUTILS_INCLUDE_DIRS "${COINUTILS_INCLUDE_DIR}" )
set(COINUTILS_LIBRARIES "${COINUTILS_LIBRARY}" )
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set COINUTILS_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(COINUTILS DEFAULT_MSG
COINUTILS_LIBRARY COINUTILS_INCLUDE_DIR)
mark_as_advanced(COINUTILS_INCLUDE_DIR COINUTILS_LIBRARY)
endif(COINUTILS_INCLUDE_DIR)
......@@ -12,7 +12,7 @@ IF (COMISO_INCLUDE_DIR)
SET(COMISO_FIND_QUIETLY TRUE)
ENDIF (COMISO_INCLUDE_DIR)
# Find CoMISo config file
FIND_PATH( COMISO_INCLUDE_DIR CoMISo/Config/config.hh
PATHS "${CMAKE_SOURCE_DIR}"
......@@ -209,6 +209,20 @@ if ( COMISO_INCLUDE_DIR )
endif()
STRING(REGEX MATCH "\#define COMISO_DCO_AVAILABLE 1" COMISO_DCO_BUILD_TIME_AVAILABLE ${CURRENT_COMISO_CONFIG} )
if ( COMISO_DCO_BUILD_TIME_AVAILABLE )
find_package(DCO)
if ( NOT DCO_FOUND )
message(ERROR "COMISO configured with DCO but DCO not available")
endif()
list (APPEND COMISO_OPT_DEPS “DCO”)
endif()
add_definitions (-DCOMISODLL -DUSECOMISO )
endif(COMISO_INCLUDE_DIR)
......
# - Try to find OSI
# Once done this will define
# OSI_FOUND - System has OSI
# OSI_INCLUDE_DIRS - The OSI include directories
# OSI_LIBRARIES - The libraries needed to use OSI
if (OSI_INCLUDE_DIR)
# in cache already
set(OSI_FOUND TRUE)
set(OSI_INCLUDE_DIRS "${OSI_INCLUDE_DIR}" )
set(OSI_LIBRARIES "${OSI_LIBRARY};${OSI_CBC_LIBRARY};${OSI_CLP_LIBRARY}" )
else (OSI_INCLUDE_DIR)
find_path(OSI_INCLUDE_DIR
NAMES OsiConfig.h
PATHS "$ENV{OSI_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\osi\\include"
"C:\\libs\\cbc\\include"
)
find_library( OSI_LIBRARY
NAMES Osi
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
)
find_library( OSI_CBC_LIBRARY
NAMES OsiCbc
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
)
find_library( OSI_CLP_LIBRARY
NAMES OsiClp
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
)
set(OSI_INCLUDE_DIRS "${OSI_INCLUDE_DIR}" )
set(OSI_LIBRARIES "${OSI_LIBRARY};${OSI_CBC_LIBRARY};${OSI_CLP_LIBRARY}" )
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set OSI_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(OSI DEFAULT_MSG
OSI_LIBRARY OSI_CBC_LIBRARY OSI_CLP_LIBRARY OSI_INCLUDE_DIR)
mark_as_advanced(OSI_INCLUDE_DIR OSI_LIBRARY OSI_CBC_LIBRARY OSI_CLP_LIBRARY)
endif(OSI_INCLUDE_DIR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment