"tools/git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "affd197e3c29891c03f94a920092cd8712ce0d2a"
Commit 8ad068c4 authored by Alain Vaucher's avatar Alain Vaucher
Browse files

Set the include directories automatically for targets that depend on imported dlib

parent 272e0c79
...@@ -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)")
......
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