mirror of https://github.com/davisking/dlib.git
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
|
@ -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)
|
ARCHIVE DESTINATION lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/ DESTINATION include/dlib
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION include/dlib
|
||||||
FILES_MATCHING PATTERN "*.h"
|
FILES_MATCHING PATTERN "*.h"
|
||||||
REGEX "${CMAKE_CURRENT_BINARY_DIR}" EXCLUDE)
|
REGEX "${CMAKE_CURRENT_BINARY_DIR}" EXCLUDE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue