This PR allows us to avoid "CMake Warning" that 'dlib_INCLUDE_DIRS' and 'dlib_LIBRARIES' are deplicated. With this request, #21 is solved.
According to davisking, dlib owner, "If you changed libgazr's target_link_libraries call to link against dlib::dlib_shared it works." ref: https://github.com/davisking/dlib/issues/1073 .
When I run cmake .. I found below warings:
CMake Warning at ... dlib/dlibConfig.cmake:42 (message):
The variable 'dlib_INCLUDE_DIRS' is deprecated! Instead, simply use
target_link_libraries(your_app dlib::dlib). See
http://dlib.net/examples/CMakeLists.txt.html for an example.
Call Stack (most recent call first):
CMakeLists.txt:9999 (__deprecated_var)
CMake Warning at ... dlib/dlibConfig.cmake:42 (message):
The variable 'dlib_LIBRARIES' is deprecated! Instead, simply use
target_link_libraries(your_app dlib::dlib). See
http://dlib.net/examples/CMakeLists.txt.html for an example.
Call Stack (most recent call first):
CMakeLists.txt:9999 (__deprecated_var)
. For this project dlib::dlib_shared seems better than dlib::dlib.
This PR allows us to avoid "CMake Warning" that 'dlib_INCLUDE_DIRS' and 'dlib_LIBRARIES' are deplicated. With this request, #21 is solved.
According to davisking, dlib owner, "If you changed libgazr's target_link_libraries call to link against dlib::dlib_shared it works." ref: https://github.com/davisking/dlib/issues/1073 .
When I run
cmake ..
I found below warings:. For this project
dlib::dlib_shared
seems better thandlib::dlib
.