2017-02-28 01:22:50 +08:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2017-10-17 08:55:28 +08:00
|
|
|
|
2017-10-29 20:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
get_directory_property(has_parent PARENT_DIRECTORY)
|
|
|
|
if(NOT has_parent)
|
|
|
|
# Set this so that the dlib subfolder will build both a static and shared
|
|
|
|
# library, since the only reason to build this CMakeLists.txt by itself is
|
|
|
|
# if you want to install dlib. It should be noted however that installing
|
|
|
|
# dlib is not necessary. A simpler approach is to use it the way shown in
|
|
|
|
# examples/CMakeLists.txt
|
|
|
|
set(DLIB_IN_PROJECT_BUILD false)
|
|
|
|
endif()
|
2017-10-17 08:55:28 +08:00
|
|
|
|
2016-02-26 01:51:13 +08:00
|
|
|
add_subdirectory(dlib)
|