Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
8ad068c4
Commit
8ad068c4
authored
Feb 27, 2017
by
Alain Vaucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the include directories automatically for targets that depend on imported dlib
parent
272e0c79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
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