mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Support building dlib from a top-level CMakeLists file
This follows convention which simplifies using dlib as a CMake ExternalProject.
This commit is contained in:
parent
2a3cf8732b
commit
378431eeea
2
CMakeLists.txt
Normal file
2
CMakeLists.txt
Normal file
@ -0,0 +1,2 @@
|
||||
cmake_minimum_required(VERSION 2.8.4)
|
||||
add_subdirectory(dlib)
|
@ -432,7 +432,7 @@ if (NOT TARGET dlib)
|
||||
ARCHIVE DESTINATION lib)
|
||||
endif()
|
||||
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/ DESTINATION include/dlib
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION include/dlib
|
||||
FILES_MATCHING PATTERN "*.h"
|
||||
REGEX "${CMAKE_CURRENT_BINARY_DIR}" EXCLUDE)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user