Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
d30f87b6
Commit
d30f87b6
authored
Mar 10, 2018
by
Davis King
Browse files
Fixed tabbing and layout
parent
49ec319c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
141 additions
and
138 deletions
+141
-138
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+141
-138
No files found.
dlib/CMakeLists.txt
View file @
d30f87b6
...
@@ -89,10 +89,10 @@ endmacro()
...
@@ -89,10 +89,10 @@ endmacro()
# Suppress superfluous randlib warnings about libdlib.a having no symbols on MacOSX.
# Suppress superfluous randlib warnings about libdlib.a having no symbols on MacOSX.
if
(
APPLE
)
if
(
APPLE
)
set
(
CMAKE_C_ARCHIVE_CREATE
"<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>"
)
set
(
CMAKE_C_ARCHIVE_CREATE
"<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>"
)
set
(
CMAKE_CXX_ARCHIVE_CREATE
"<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>"
)
set
(
CMAKE_CXX_ARCHIVE_CREATE
"<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>"
)
set
(
CMAKE_C_ARCHIVE_FINISH
"<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>"
)
set
(
CMAKE_C_ARCHIVE_FINISH
"<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>"
)
set
(
CMAKE_CXX_ARCHIVE_FINISH
"<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>"
)
set
(
CMAKE_CXX_ARCHIVE_FINISH
"<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>"
)
endif
()
endif
()
# Don't try to call add_library(dlib) and setup dlib's stuff if it has already
# Don't try to call add_library(dlib) and setup dlib's stuff if it has already
...
@@ -104,30 +104,30 @@ endif()
...
@@ -104,30 +104,30 @@ endif()
if
(
NOT TARGET dlib
)
if
(
NOT TARGET dlib
)
set
(
DLIB_ISO_CPP_ONLY_STR
set
(
DLIB_ISO_CPP_ONLY_STR
"Enable this if you don't want to compile any non-ISO C++ code (i.e. you don't use any of the API Wrappers)"
)
"Enable this if you don't want to compile any non-ISO C++ code (i.e. you don't use any of the API Wrappers)"
)
set
(
DLIB_NO_GUI_SUPPORT_STR
set
(
DLIB_NO_GUI_SUPPORT_STR
"Enable this if you don't want to compile any of the dlib GUI code"
)
"Enable this if you don't want to compile any of the dlib GUI code"
)
set
(
DLIB_ENABLE_STACK_TRACE_STR
set
(
DLIB_ENABLE_STACK_TRACE_STR
"Enable this if you want to turn on the DLIB_STACK_TRACE macros"
)
"Enable this if you want to turn on the DLIB_STACK_TRACE macros"
)
set
(
DLIB_USE_BLAS_STR
set
(
DLIB_USE_BLAS_STR
"Disable this if you don't want to use a BLAS library"
)
"Disable this if you don't want to use a BLAS library"
)
set
(
DLIB_USE_LAPACK_STR
set
(
DLIB_USE_LAPACK_STR
"Disable this if you don't want to use a LAPACK library"
)
"Disable this if you don't want to use a LAPACK library"
)
set
(
DLIB_USE_CUDA_STR
set
(
DLIB_USE_CUDA_STR
"Disable this if you don't want to use NVIDIA CUDA"
)
"Disable this if you don't want to use NVIDIA CUDA"
)
set
(
DLIB_PNG_SUPPORT_STR
set
(
DLIB_PNG_SUPPORT_STR
"Disable this if you don't want to link against libpng"
)
"Disable this if you don't want to link against libpng"
)
set
(
DLIB_GIF_SUPPORT_STR
set
(
DLIB_GIF_SUPPORT_STR
"Disable this if you don't want to link against libgif"
)
"Disable this if you don't want to link against libgif"
)
set
(
DLIB_JPEG_SUPPORT_STR
set
(
DLIB_JPEG_SUPPORT_STR
"Disable this if you don't want to link against libjpeg"
)
"Disable this if you don't want to link against libjpeg"
)
set
(
DLIB_LINK_WITH_SQLITE3_STR
set
(
DLIB_LINK_WITH_SQLITE3_STR
"Disable this if you don't want to link against sqlite3"
)
"Disable this if you don't want to link against sqlite3"
)
#set (DLIB_USE_FFTW_STR "Disable this if you don't want to link against fftw" )
#set (DLIB_USE_FFTW_STR "Disable this if you don't want to link against fftw" )
set
(
DLIB_USE_MKL_FFT_STR
set
(
DLIB_USE_MKL_FFT_STR
"Disable this is you don't want to use the MKL DFTI FFT implementation"
)
"Disable this is you don't want to use the MKL DFTI FFT implementation"
)
set
(
DLIB_ENABLE_ASSERTS_STR
set
(
DLIB_ENABLE_ASSERTS_STR
"Enable this if you want to turn on the DLIB_ASSERT macro"
)
"Enable this if you want to turn on the DLIB_ASSERT macro"
)
option
(
DLIB_ENABLE_ASSERTS
${
DLIB_ENABLE_ASSERTS_STR
}
OFF
)
option
(
DLIB_ENABLE_ASSERTS
${
DLIB_ENABLE_ASSERTS_STR
}
OFF
)
...
@@ -199,30 +199,30 @@ if (NOT TARGET dlib)
...
@@ -199,30 +199,30 @@ if (NOT TARGET dlib)
set
(
source_files
set
(
source_files
base64/base64_kernel_1.cpp
base64/base64_kernel_1.cpp
bigint/bigint_kernel_1.cpp
bigint/bigint_kernel_1.cpp
bigint/bigint_kernel_2.cpp
bigint/bigint_kernel_2.cpp
bit_stream/bit_stream_kernel_1.cpp
bit_stream/bit_stream_kernel_1.cpp
entropy_decoder/entropy_decoder_kernel_1.cpp
entropy_decoder/entropy_decoder_kernel_1.cpp
entropy_decoder/entropy_decoder_kernel_2.cpp
entropy_decoder/entropy_decoder_kernel_2.cpp
entropy_encoder/entropy_encoder_kernel_1.cpp
entropy_encoder/entropy_encoder_kernel_1.cpp
entropy_encoder/entropy_encoder_kernel_2.cpp
entropy_encoder/entropy_encoder_kernel_2.cpp
md5/md5_kernel_1.cpp
md5/md5_kernel_1.cpp
tokenizer/tokenizer_kernel_1.cpp
tokenizer/tokenizer_kernel_1.cpp
unicode/unicode.cpp
unicode/unicode.cpp
data_io/image_dataset_metadata.cpp
data_io/image_dataset_metadata.cpp
data_io/mnist.cpp
data_io/mnist.cpp
global_optimization/global_function_search.cpp
global_optimization/global_function_search.cpp
filtering/kalman_filter.cpp
filtering/kalman_filter.cpp
test_for_odr_violations.cpp
test_for_odr_violations.cpp
)
)
set
(
dlib_needed_libraries
)
set
(
dlib_needed_libraries
)
set
(
dlib_needed_includes
)
set
(
dlib_needed_includes
)
if
(
DLIB_ISO_CPP_ONLY
)
if
(
DLIB_ISO_CPP_ONLY
)
add_library
(
dlib
${
source_files
}
)
add_library
(
dlib
${
source_files
}
)
else
()
else
()
set
(
source_files
${
source_files
}
set
(
source_files
${
source_files
}
...
@@ -457,51 +457,51 @@ if (NOT TARGET dlib)
...
@@ -457,51 +457,51 @@ if (NOT TARGET dlib)
# If we can't find libjpeg then statically compile it in.
# If we can't find libjpeg then statically compile it in.
add_definitions
(
-DDLIB_JPEG_STATIC
)
add_definitions
(
-DDLIB_JPEG_STATIC
)
set
(
source_files
${
source_files
}
set
(
source_files
${
source_files
}
external/libjpeg/jcomapi.cpp
external/libjpeg/jcomapi.cpp
external/libjpeg/jdapimin.cpp
external/libjpeg/jdapimin.cpp
external/libjpeg/jdapistd.cpp
external/libjpeg/jdapistd.cpp
external/libjpeg/jdatasrc.cpp
external/libjpeg/jdatasrc.cpp
external/libjpeg/jdcoefct.cpp
external/libjpeg/jdcoefct.cpp
external/libjpeg/jdcolor.cpp
external/libjpeg/jdcolor.cpp
external/libjpeg/jddctmgr.cpp
external/libjpeg/jddctmgr.cpp
external/libjpeg/jdhuff.cpp
external/libjpeg/jdhuff.cpp
external/libjpeg/jdinput.cpp
external/libjpeg/jdinput.cpp
external/libjpeg/jdmainct.cpp
external/libjpeg/jdmainct.cpp
external/libjpeg/jdmarker.cpp
external/libjpeg/jdmarker.cpp
external/libjpeg/jdmaster.cpp
external/libjpeg/jdmaster.cpp
external/libjpeg/jdmerge.cpp
external/libjpeg/jdmerge.cpp
external/libjpeg/jdphuff.cpp
external/libjpeg/jdphuff.cpp
external/libjpeg/jdpostct.cpp
external/libjpeg/jdpostct.cpp
external/libjpeg/jdsample.cpp
external/libjpeg/jdsample.cpp
external/libjpeg/jerror.cpp
external/libjpeg/jerror.cpp
external/libjpeg/jidctflt.cpp
external/libjpeg/jidctflt.cpp
external/libjpeg/jidctfst.cpp
external/libjpeg/jidctfst.cpp
external/libjpeg/jidctint.cpp
external/libjpeg/jidctint.cpp
external/libjpeg/jidctred.cpp
external/libjpeg/jidctred.cpp
external/libjpeg/jmemmgr.cpp
external/libjpeg/jmemmgr.cpp
external/libjpeg/jmemnobs.cpp
external/libjpeg/jmemnobs.cpp
external/libjpeg/jquant1.cpp
external/libjpeg/jquant1.cpp
external/libjpeg/jquant2.cpp
external/libjpeg/jquant2.cpp
external/libjpeg/jutils.cpp
external/libjpeg/jutils.cpp
external/libjpeg/jcapimin.cpp
external/libjpeg/jcapimin.cpp
external/libjpeg/jdatadst.cpp
external/libjpeg/jdatadst.cpp
external/libjpeg/jcparam.cpp
external/libjpeg/jcparam.cpp
external/libjpeg/jcapistd.cpp
external/libjpeg/jcapistd.cpp
external/libjpeg/jcmarker.cpp
external/libjpeg/jcmarker.cpp
external/libjpeg/jcinit.cpp
external/libjpeg/jcinit.cpp
external/libjpeg/jcmaster.cpp
external/libjpeg/jcmaster.cpp
external/libjpeg/jcdctmgr.cpp
external/libjpeg/jcdctmgr.cpp
external/libjpeg/jccoefct.cpp
external/libjpeg/jccoefct.cpp
external/libjpeg/jccolor.cpp
external/libjpeg/jccolor.cpp
external/libjpeg/jchuff.cpp
external/libjpeg/jchuff.cpp
external/libjpeg/jcmainct.cpp
external/libjpeg/jcmainct.cpp
external/libjpeg/jcphuff.cpp
external/libjpeg/jcphuff.cpp
external/libjpeg/jcprepct.cpp
external/libjpeg/jcprepct.cpp
external/libjpeg/jcsample.cpp
external/libjpeg/jcsample.cpp
external/libjpeg/jfdctint.cpp
external/libjpeg/jfdctint.cpp
external/libjpeg/jfdctflt.cpp
external/libjpeg/jfdctflt.cpp
external/libjpeg/jfdctfst.cpp
external/libjpeg/jfdctfst.cpp
)
)
endif
()
endif
()
set
(
source_files
${
source_files
}
set
(
source_files
${
source_files
}
image_loader/jpeg_loader.cpp
image_loader/jpeg_loader.cpp
...
@@ -511,7 +511,7 @@ if (NOT TARGET dlib)
...
@@ -511,7 +511,7 @@ if (NOT TARGET dlib)
if
(
DLIB_USE_BLAS OR DLIB_USE_LAPACK OR DLIB_USE_MKL_FFT
)
if
(
DLIB_USE_BLAS OR DLIB_USE_LAPACK OR DLIB_USE_MKL_FFT
)
# Try to find BLAS, LAPACK and MKL
# Try to find BLAS, LAPACK and MKL
include
(
cmake_utils/cmake_find_blas.txt
)
include
(
cmake_utils/cmake_find_blas.txt
)
if
(
DLIB_USE_BLAS
)
if
(
DLIB_USE_BLAS
)
...
@@ -596,19 +596,21 @@ if (NOT TARGET dlib)
...
@@ -596,19 +596,21 @@ if (NOT TARGET dlib)
# make sure cuda is really working by doing a test compile
# make sure cuda is really working by doing a test compile
message
(
STATUS
"Building a CUDA test project to see if your compiler is compatible with CUDA..."
)
message
(
STATUS
"Building a CUDA test project to see if your compiler is compatible with CUDA..."
)
set
(
CUDA_TEST_CMAKE_FLAGS
"-DCMAKE_PREFIX_PATH=
${
CMAKE_PREFIX_PATH
}
"
set
(
CUDA_TEST_CMAKE_FLAGS
"-DCMAKE_INCLUDE_PATH=
${
CMAKE_INCLUDE_PATH
}
"
"-DCMAKE_PREFIX_PATH=
${
CMAKE_PREFIX_PATH
}
"
"-DCMAKE_LIBRARY_PATH=
${
CMAKE_LIBRARY_PATH
}
"
)
"-DCMAKE_INCLUDE_PATH=
${
CMAKE_INCLUDE_PATH
}
"
"-DCMAKE_LIBRARY_PATH=
${
CMAKE_LIBRARY_PATH
}
"
)
if
(
NOT MSVC
)
# see https://github.com/davisking/dlib/issues/363
if
(
NOT MSVC
)
# see https://github.com/davisking/dlib/issues/363
list
(
APPEND CUDA_TEST_CMAKE_FLAGS
"-DCUDA_HOST_COMPILER=
${
CUDA_HOST_COMPILER
}
"
)
list
(
APPEND CUDA_TEST_CMAKE_FLAGS
"-DCUDA_HOST_COMPILER=
${
CUDA_HOST_COMPILER
}
"
)
endif
()
endif
()
try_compile
(
cuda_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cuda_test_build
try_compile
(
cuda_test_compile_worked
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cuda cuda_test
${
PROJECT_BINARY_DIR
}
/cuda_test_build
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cuda cuda_test
OUTPUT_VARIABLE try_compile_output_message
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
)
OUTPUT_VARIABLE try_compile_output_message
)
if
(
NOT cuda_test_compile_worked
)
if
(
NOT cuda_test_compile_worked
)
string
(
REPLACE
"
\n
"
"
\n
*** "
try_compile_output_message
"
${
try_compile_output_message
}
"
)
string
(
REPLACE
"
\n
"
"
\n
*** "
try_compile_output_message
"
${
try_compile_output_message
}
"
)
message
(
STATUS
"*****************************************************************************************************************"
)
message
(
STATUS
"*****************************************************************************************************************"
)
...
@@ -618,10 +620,11 @@ if (NOT TARGET dlib)
...
@@ -618,10 +620,11 @@ if (NOT TARGET dlib)
message
(
STATUS
"*****************************************************************************************************************"
)
message
(
STATUS
"*****************************************************************************************************************"
)
else
()
else
()
message
(
STATUS
"Checking if you have the right version of cuDNN installed."
)
message
(
STATUS
"Checking if you have the right version of cuDNN installed."
)
try_compile
(
cudnn_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
try_compile
(
cudnn_test_compile_worked
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cudnn cudnn_test
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cudnn cudnn_test
)
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
)
if
(
NOT cudnn_test_compile_worked
)
if
(
NOT cudnn_test_compile_worked
)
message
(
STATUS
"*** Found cuDNN, but it looks like the wrong version so dlib will not use it. ***"
)
message
(
STATUS
"*** Found cuDNN, but it looks like the wrong version so dlib will not use it. ***"
)
message
(
STATUS
"*** Dlib requires cuDNN V5.0 OR GREATER. Since cuDNN is not found DLIB WILL NOT USE CUDA. ***"
)
message
(
STATUS
"*** Dlib requires cuDNN V5.0 OR GREATER. Since cuDNN is not found DLIB WILL NOT USE CUDA. ***"
)
...
@@ -662,15 +665,15 @@ if (NOT TARGET dlib)
...
@@ -662,15 +665,15 @@ if (NOT TARGET dlib)
dnn/gpu_data.cpp
dnn/gpu_data.cpp
)
)
set
(
dlib_needed_libraries
${
dlib_needed_libraries
}
set
(
dlib_needed_libraries
${
dlib_needed_libraries
}
${
CUDA_CUBLAS_LIBRARIES
}
${
CUDA_CUBLAS_LIBRARIES
}
${
cudnn
}
${
cudnn
}
${
CUDA_curand_LIBRARY
}
${
CUDA_curand_LIBRARY
}
${
cusolver
}
${
cusolver
}
)
)
if
(
openmp_libraries
)
if
(
openmp_libraries
)
list
(
APPEND dlib_needed_libraries
${
openmp_libraries
}
)
list
(
APPEND dlib_needed_libraries
${
openmp_libraries
}
)
endif
()
endif
()
include_directories
(
${
cudnn_include
}
)
include_directories
(
${
cudnn_include
}
)
message
(
STATUS
"Enabling CUDA support for dlib. DLIB WILL USE CUDA"
)
message
(
STATUS
"Enabling CUDA support for dlib. DLIB WILL USE CUDA"
)
else
()
else
()
...
@@ -682,7 +685,7 @@ if (NOT TARGET dlib)
...
@@ -682,7 +685,7 @@ if (NOT TARGET dlib)
message
(
STATUS
"Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA"
)
message
(
STATUS
"Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA"
)
endif
()
endif
()
endif
()
endif
()
if
(
DLIB_LINK_WITH_SQLITE3
)
if
(
DLIB_LINK_WITH_SQLITE3
)
find_library
(
sqlite sqlite3
)
find_library
(
sqlite sqlite3
)
...
@@ -729,10 +732,10 @@ if (NOT TARGET dlib)
...
@@ -729,10 +732,10 @@ if (NOT TARGET dlib)
target_include_directories
(
dlib
target_include_directories
(
dlib
INTERFACE $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/..>
INTERFACE $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/..>
INTERFACE $<INSTALL_INTERFACE:include>
INTERFACE $<INSTALL_INTERFACE:include>
PUBLIC
${
dlib_needed_includes
}
PUBLIC
${
dlib_needed_includes
}
)
)
target_link_libraries
(
dlib PUBLIC
${
dlib_needed_libraries
}
)
target_link_libraries
(
dlib PUBLIC
${
dlib_needed_libraries
}
)
if
(
DLIB_IN_PROJECT_BUILD
)
if
(
DLIB_IN_PROJECT_BUILD
)
target_compile_options
(
dlib PUBLIC
${
active_preprocessor_switches
}
)
target_compile_options
(
dlib PUBLIC
${
active_preprocessor_switches
}
)
...
@@ -770,52 +773,52 @@ if (NOT TARGET dlib)
...
@@ -770,52 +773,52 @@ if (NOT TARGET dlib)
# Install the library
# Install the library
if
(
NOT DLIB_IN_PROJECT_BUILD
)
if
(
NOT DLIB_IN_PROJECT_BUILD
)
set_target_properties
(
dlib PROPERTIES
set_target_properties
(
dlib PROPERTIES
VERSION
${
VERSION
}
)
VERSION
${
VERSION
}
)
install
(
TARGETS dlib
install
(
TARGETS dlib
EXPORT dlib
EXPORT dlib
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
# Windows considers .dll to be runtime artifacts
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
# Windows considers .dll to be runtime artifacts
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/ DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dlib
install
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/ DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dlib
FILES_MATCHING PATTERN
"*.h"
PATTERN
"*.cmake"
FILES_MATCHING PATTERN
"*.h"
PATTERN
"*.cmake"
REGEX
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
EXCLUDE
)
REGEX
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
EXCLUDE
)
configure_file
(
${
PROJECT_SOURCE_DIR
}
/config.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h
)
configure_file
(
${
PROJECT_SOURCE_DIR
}
/config.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h
)
# overwrite config.h with the configured one
# overwrite config.h with the configured one
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dlib
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dlib
)
configure_file
(
${
PROJECT_SOURCE_DIR
}
/revision.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/revision.h
)
configure_file
(
${
PROJECT_SOURCE_DIR
}
/revision.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/revision.h
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/revision.h DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dlib
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/revision.h DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dlib
)
## Config.cmake generation and installation
## Config.cmake generation and installation
set
(
ConfigPackageLocation
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/dlib"
)
set
(
ConfigPackageLocation
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/dlib"
)
install
(
EXPORT dlib
install
(
EXPORT dlib
NAMESPACE dlib::
NAMESPACE dlib::
DESTINATION
${
ConfigPackageLocation
}
)
DESTINATION
${
ConfigPackageLocation
}
)
configure_file
(
cmake_utils/dlibConfig.cmake.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/config/dlibConfig.cmake"
@ONLY
)
configure_file
(
cmake_utils/dlibConfig.cmake.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/config/dlibConfig.cmake"
@ONLY
)
include
(
CMakePackageConfigHelpers
)
include
(
CMakePackageConfigHelpers
)
write_basic_package_version_file
(
write_basic_package_version_file
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/config/dlibConfigVersion.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/config/dlibConfigVersion.cmake"
VERSION
${
VERSION
}
VERSION
${
VERSION
}
COMPATIBILITY AnyNewerVersion
COMPATIBILITY AnyNewerVersion
)
)
install
(
FILES
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/config/dlibConfig.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/config/dlibConfig.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/config/dlibConfigVersion.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/config/dlibConfigVersion.cmake"
DESTINATION
${
ConfigPackageLocation
}
)
DESTINATION
${
ConfigPackageLocation
}
)
## dlib-1.pc generation and installation
## dlib-1.pc generation and installation
configure_file
(
"cmake_utils/dlib.pc.in"
"dlib-1.pc"
@ONLY
)
configure_file
(
"cmake_utils/dlib.pc.in"
"dlib-1.pc"
@ONLY
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/dlib-1.pc"
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/dlib-1.pc"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig"
)
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig"
)
endif
()
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment