Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
8ad068c4
Commit
8ad068c4
authored
Feb 27, 2017
by
Alain Vaucher
Browse files
Set the include directories automatically for targets that depend on imported dlib
parent
272e0c79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+4
-0
No files found.
dlib/CMakeLists.txt
View file @
8ad068c4
...
@@ -666,6 +666,10 @@ if (NOT TARGET dlib)
...
@@ -666,6 +666,10 @@ if (NOT TARGET dlib)
ADD_LIBRARY
(
dlib_all_source_cpp STATIC all/source.cpp
)
ADD_LIBRARY
(
dlib_all_source_cpp STATIC all/source.cpp
)
endif
()
endif
()
# Specify the include directory for CMake targets relying on dlib.
target_include_directories
(
dlib INTERFACE $<INSTALL_INTERFACE:include>
)
target_include_directories
(
dlib_shared INTERFACE $<INSTALL_INTERFACE:include>
)
# Install the library
# Install the library
if
(
NOT DLIB_IN_PROJECT_BUILD
)
if
(
NOT DLIB_IN_PROJECT_BUILD
)
set
(
LIB_INSTALL_DIR lib CACHE STRING
"Install location of libraries (e.g. lib32 or lib64 for multilib installations)"
)
set
(
LIB_INSTALL_DIR lib CACHE STRING
"Install location of libraries (e.g. lib32 or lib64 for multilib installations)"
)
...
...
Write
Preview
Markdown
is supported
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