Commit cb16ab58 authored by Jan Möbius's avatar Jan Möbius

CBC and IPOPT

parent 93ff878e
Pipeline #856 passed with stage
# - 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
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
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"
"${VS_SEARCH_PATH}CBC-2.9.4/Cgl/include"
)
find_library( CGL_LIBRARY
NAMES Cgl libCgl
PATHS "$ENV{CGL_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cgl\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Cgl/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 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
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
SET(VS_SUBDIR "x64-v120-")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
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"
"${VS_SEARCH_PATH}CBC-2.9.7/Cgl/include"
"${VS_SEARCH_PATH}CBC-2.9.4/Cgl/include"
)
find_library( CGL_LIBRARY_DEBUG
NAMES Cgld libCgld
PATHS "$ENV{CGL_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cgl\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Debug"
"${VS_SEARCH_PATH}CBC-2.9.4/Cgl/lib"
)
find_library( CGL_LIBRARY_RELEASE
NAMES Cgl libCgl
PATHS "$ENV{CGL_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cgl\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Release"
"${VS_SEARCH_PATH}CBC-2.9.4/Cgl/lib"
)
include(SelectLibraryConfigurations)
select_library_configurations( CGL )
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
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
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"
"${VS_SEARCH_PATH}CBC-2.9.4/Clp/include"
)
find_library( CLP_LIBRARY
NAMES Clp libClp
PATHS "$ENV{CLP_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\clp\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Clp/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 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
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
SET(VS_SUBDIR "x64-v120-")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
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"
"${VS_SEARCH_PATH}CBC-2.9.7/Clp/include"
"${VS_SEARCH_PATH}CBC-2.9.4/Clp/include"
)
find_library( CLP_LIBRARY_DEBUG
NAMES Clpd libClpd
PATHS "$ENV{CLP_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\clp\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Debug"
"${VS_SEARCH_PATH}CBC-2.9.4/Clp/lib"
)
find_library( CLP_LIBRARY_RELEASE
NAMES Clp libClp
PATHS "$ENV{CLP_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\clp\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Release"
"${VS_SEARCH_PATH}CBC-2.9.4/Clp/lib"
)
include(SelectLibraryConfigurations)
select_library_configurations( CLP )
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)
......@@ -29,19 +29,35 @@ find_path(COINUTILS_INCLUDE_DIR
"/usr/include/coin"
"C:\\libs\\coinutils\\include"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}CBC-2.9.4/CoinUtils/include"
"${VS_SEARCH_PATH}CBC-2.9.7/CoinUtils/include"
"${VS_SEARCH_PATH}CBC-2.9.4/CoinUtils/include"
)
find_library( COINUTILS_LIBRARY
NAMES CoinUtils libCoinUtils
find_library( COINUTILS_LIBRARY_DEBUG
NAMES CoinUtilsd libCoinUtilsd
PATHS "$ENV{COINUTILS_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\coinutils\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/CoinUtils/lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Debug"
"C:\\libs\\cbc\\lib""${VS_SEARCH_PATH}CBC-2.9.4/CoinUtils/lib"
)
find_library( COINUTILS_LIBRARY_RELEASE
NAMES CoinUtils libCoinUtils
PATHS "$ENV{COINUTILS_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\coinutils\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Release"
"C:\\libs\\cbc\\lib""${VS_SEARCH_PATH}CBC-2.9.4/CoinUtils/lib"
)
include(SelectLibraryConfigurations)
select_library_configurations( COINUTILS )
set(COINUTILS_INCLUDE_DIRS "${COINUTILS_INCLUDE_DIR}" )
set(COINUTILS_LIBRARIES "${COINUTILS_LIBRARY}" )
......
......@@ -49,7 +49,7 @@ if (WIN32)
find_library( IPOPT_LIBRARY_DEBUG
Ipopt ipoptd libipoptd IpOpt-vc10d
PATHS "C:\\libs\\Ipopt-3.8.2\\lib\\win32\\debug"
"${VS_SEARCH_PATH}Ipopt-3.11.9/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.4/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
"${VS_SEARCH_PATH}Ipopt-3.11.9/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
)
......
# - 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
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
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
PATH_SUFFIXES "Osi"
PATHS "$ENV{OSI_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\osi\\include"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/include"
)
find_library( OSI_LIBRARY
NAMES Osi libOsi
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/lib"
)
find_library( OSI_CBC_LIBRARY
NAMES OsiCbc libOsiCbc
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/lib"
)
find_library( OSI_CLP_LIBRARY
NAMES OsiClp libOsiClp
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/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)
# - 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
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
SET(VS_SUBDIR "x64-v120-")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
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
PATH_SUFFIXES "Osi"
PATHS "$ENV{OSI_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\osi\\include"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}CBC-2.9.7/Osi/include"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/include"
)
find_library( OSI_LIBRARY_DEBUG
NAMES Osid libOsid
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Debug"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/lib"
)
find_library( OSI_LIBRARY_RELEASE
NAMES Osi libOsi
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Release"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/lib"
)
find_library( OSI_CBC_LIBRARY_DEBUG
NAMES OsiCbcd libOsiCbcd
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Debug"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/lib"
)
find_library( OSI_CBC_LIBRARY_RELEASE
NAMES OsiCbc libOsiCbc
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Release"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/lib"
)
find_library( OSI_CLP_LIBRARY_DEBUG
NAMES OsiClpd libOsiClpd
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Debug"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/lib"
)
find_library( OSI_CLP_LIBRARY_RELEASE
NAMES OsiClp libOsiClp
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.7/lib/${VS_SUBDIR}Release"
"${VS_SEARCH_PATH}CBC-2.9.4/Osi/lib"
)
include(SelectLibraryConfigurations)
select_library_configurations( OSI )
select_library_configurations( OSI_CBC )
select_library_configurations( OSI_CLP )
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