Commit 58aa6a66 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'CBCDebugLibraries' into 'master'

handle cbc debug and release libraries in finder



See merge request !65
parents 20760bfc 7df04a08
Pipeline #826 passed with stage
......@@ -23,33 +23,57 @@ if (CBC_INCLUDE_DIR)
else (CBC_INCLUDE_DIR)
find_path(CBC_INCLUDE_DIR
find_path(CBC_INCLUDE_DIR
NAMES CbcConfig.h
PATHS "$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}CBC-2.9.4/Cbc/include"
"${VS_SEARCH_PATH}CBC-2.9.4/Cbc/include"
)
find_library( CBC_LIBRARY
find_library( CBC_LIBRARY_DEBUG
NAMES Cbcd libCbcd
PATHS "$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Cbc/lib"
)
find_library( CBC_SOLVER_LIBRARY_DEBUG
NAMES CbcSolverd libCbcSolverd
PATHS "$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Cbc/lib"
)
find_library( CBC_LIBRARY_RELEASE
NAMES Cbc libCbc
PATHS "$ENV{CBC_DIR}/lib"
PATHS "$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Cbc/lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Cbc/lib"
)
find_library( CBC_SOLVER_LIBRARY
find_library( CBC_SOLVER_LIBRARY_RELEASE
NAMES CbcSolver libCbcSolver
PATHS "$ENV{CBC_DIR}/lib"
PATHS "$ENV{CBC_DIR}/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Cbc/lib"
"${VS_SEARCH_PATH}CBC-2.9.4/Cbc/lib"
)
include(SelectLibraryConfigurations)
select_library_configurations( CBC_LIBRARY )
select_library_configurations( CBC_SOLVER_LIBRARY )
set(CBC_INCLUDE_DIRS "${CBC_INCLUDE_DIR}" )
set(CBC_LIBRARIES "${CBC_LIBRARY};${CBC_SOLVER_LIBRARY}" )
......
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