Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
CoMISo
Commits
b441d5ba
Commit
b441d5ba
authored
Jan 28, 2016
by
Max Lyon
Browse files
handle cbc debug and release libraries in finder
parent
11455934
Pipeline
#824
passed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
cmake/FindCBC.cmake
View file @
b441d5ba
...
...
@@ -31,7 +31,26 @@ find_path(CBC_INCLUDE_DIR
"
${
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"
"/usr/lib"
...
...
@@ -40,7 +59,7 @@ find_library( CBC_LIBRARY
"
${
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"
...
...
@@ -50,6 +69,11 @@ find_library( CBC_SOLVER_LIBRARY
"
${
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
}
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment