#
# This is a CMake makefile. You can find the cmake utility and
# information about it at http://www.cmake.org
#
cmake_minimum_required(VERSION 2.8.4)
project(dlib)
# default to a Release build (except if CMAKE_BUILD_TYPE is set)
include(release_build_by_default)
include(use_cpp_11.cmake)
set(CPACK_PACKAGE_VERSION_MAJOR "19")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
# Set DLIB_VERSION in the including CMake file so they can use it to do whatever they want.
get_directory_property(has_parent PARENT_DIRECTORY)
if(has_parent)
set(DLIB_VERSION ${VERSION} PARENT_SCOPE)
endif()
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
# Suppress cmake warnings about changes in new versions.
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
endif()
include(add_global_compiler_switch.cmake)
# Make sure ENABLE_ASSERTS is defined for debug builds
if (NOT CMAKE_CXX_FLAGS_DEBUG MATCHES "-DENABLE_ASSERTS")
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DENABLE_ASSERTS"
CACHE STRING "Flags used by the compiler during C++ debug builds."
FORCE)
endif ()
macro (toggle_preprocessor_switch option_name)
if (${option_name})
add_global_define(${option_name})
else()
remove_global_define(${option_name})
endif()
endmacro()
# Don't try to call add_library(dlib) and setup dlib's stuff if it has already
# been done by some other part of the current cmake project. We do this
# because it avoids getting warnings/errors about cmake policy CMP0002. This
# happens when a project tries to call add_subdirectory() on dlib more than
# once. This most often happens when the top level of a project depends on two
# or more other things which both depend on dlib.
if (NOT TARGET dlib)
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)" )
set (DLIB_NO_GUI_SUPPORT_STR
"Enable this if you don't want to compile any of the dlib GUI code" )
set (DLIB_ENABLE_STACK_TRACE_STR
"Enable this if you want to turn on the DLIB_STACK_TRACE macros" )
set (DLIB_ENABLE_ASSERTS_STR
"Enable this if you want to turn on the DLIB_ASSERT macro" )
set (DLIB_USE_BLAS_STR
"Disable this if you don't want to use a BLAS library" )
set (DLIB_USE_LAPACK_STR
"Disable this if you don't want to use a LAPACK library" )
set (DLIB_USE_CUDA_STR
"Disable this if you don't want to use NVIDIA CUDA" )
set (DLIB_PNG_SUPPORT_STR
"Disable this if you don't want to link against libpng" )
set (DLIB_GIF_SUPPORT_STR
"Disable this if you don't want to link against libgif" )
set (DLIB_JPEG_SUPPORT_STR
"Disable this if you don't want to link against libjpeg" )
set (DLIB_LINK_WITH_SQLITE3_STR
"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" )
option(DLIB_ISO_CPP_ONLY ${DLIB_ISO_CPP_ONLY_STR} OFF)
toggle_preprocessor_switch(DLIB_ISO_CPP_ONLY)
option(DLIB_NO_GUI_SUPPORT ${DLIB_NO_GUI_SUPPORT_STR} OFF)
toggle_preprocessor_switch(DLIB_NO_GUI_SUPPORT)
option(DLIB_ENABLE_STACK_TRACE ${DLIB_ENABLE_STACK_TRACE_STR} OFF)
toggle_preprocessor_switch(DLIB_ENABLE_STACK_TRACE)
option(DLIB_ENABLE_ASSERTS ${DLIB_ENABLE_ASSERTS_STR} OFF)
if(DLIB_ENABLE_ASSERTS)
# Set these variables so they are set in the config.h.in file when dlib
# is installed.
set (DLIB_DISABLE_ASSERTS false)
set (ENABLE_ASSERTS true)
add_global_define(ENABLE_ASSERTS)
else()
# Set these variables so they are set in the config.h.in file when dlib
# is installed.
set (DLIB_DISABLE_ASSERTS true)
set (ENABLE_ASSERTS false)
remove_global_define(ENABLE_ASSERTS)
endif()
if (DLIB_ISO_CPP_ONLY)
option(DLIB_JPEG_SUPPORT ${DLIB_JPEG_SUPPORT_STR} OFF)
option(DLIB_LINK_WITH_SQLITE3 ${DLIB_LINK_WITH_SQLITE3_STR} OFF)
option(DLIB_USE_BLAS ${DLIB_USE_BLAS_STR} OFF)
option(DLIB_USE_LAPACK ${DLIB_USE_LAPACK_STR} OFF)
option(DLIB_USE_CUDA ${DLIB_USE_CUDA_STR} OFF)
option(DLIB_PNG_SUPPORT ${DLIB_PNG_SUPPORT_STR} OFF)
option(DLIB_GIF_SUPPORT ${DLIB_GIF_SUPPORT_STR} OFF)
#option(DLIB_USE_FFTW ${DLIB_USE_FFTW_STR} OFF)
else()
option(DLIB_JPEG_SUPPORT ${DLIB_JPEG_SUPPORT_STR} ON)
option(DLIB_LINK_WITH_SQLITE3 ${DLIB_LINK_WITH_SQLITE3_STR} ON)
option(DLIB_USE_BLAS ${DLIB_USE_BLAS_STR} ON)
option(DLIB_USE_LAPACK ${DLIB_USE_LAPACK_STR} ON)
option(DLIB_USE_CUDA ${DLIB_USE_CUDA_STR} ON)
option(DLIB_PNG_SUPPORT ${DLIB_PNG_SUPPORT_STR} ON)
option(DLIB_GIF_SUPPORT ${DLIB_GIF_SUPPORT_STR} ON)
#option(DLIB_USE_FFTW ${DLIB_USE_FFTW_STR} ON)
endif()
toggle_preprocessor_switch(DLIB_JPEG_SUPPORT)
toggle_preprocessor_switch(DLIB_USE_BLAS)
toggle_preprocessor_switch(DLIB_USE_LAPACK)
toggle_preprocessor_switch(DLIB_USE_CUDA)
toggle_preprocessor_switch(DLIB_PNG_SUPPORT)
toggle_preprocessor_switch(DLIB_GIF_SUPPORT)
#toggle_preprocessor_switch(DLIB_USE_FFTW)
set(source_files
base64/base64_kernel_1.cpp
bigint/bigint_kernel_1.cpp
bigint/bigint_kernel_2.cpp
bit_stream/bit_stream_kernel_1.cpp
entropy_decoder/entropy_decoder_kernel_1.cpp
entropy_decoder/entropy_decoder_kernel_2.cpp
entropy_encoder/entropy_encoder_kernel_1.cpp
entropy_encoder/entropy_encoder_kernel_2.cpp
md5/md5_kernel_1.cpp
tokenizer/tokenizer_kernel_1.cpp
unicode/unicode.cpp
data_io/image_dataset_metadata.cpp
data_io/mnist.cpp)
if (COMPILER_CAN_DO_CPP_11)
set(source_files ${source_files}
dnn/cpu_dlib.cpp
dnn/tensor_tools.cpp
)
endif()
if (DLIB_ISO_CPP_ONLY)
add_library(dlib STATIC ${source_files} )
if (UNIX AND NOT DLIB_IN_PROJECT_BUILD)
add_library(dlib_shared SHARED ${source_files} )
endif()
else()
set(source_files ${source_files}
sockets/sockets_kernel_1.cpp
bsp/bsp.cpp
dir_nav/dir_nav_kernel_1.cpp
dir_nav/dir_nav_kernel_2.cpp
dir_nav/dir_nav_extensions.cpp
linker/linker_kernel_1.cpp
logger/extra_logger_headers.cpp
logger/logger_kernel_1.cpp
logger/logger_config_file.cpp
misc_api/misc_api_kernel_1.cpp
misc_api/misc_api_kernel_2.cpp
sockets/sockets_extensions.cpp
sockets/sockets_kernel_2.cpp
sockstreambuf/sockstreambuf.cpp
sockstreambuf/sockstreambuf_unbuffered.cpp
server/server_kernel.cpp
server/server_iostream.cpp
server/server_http.cpp
threads/multithreaded_object_extension.cpp
threads/threaded_object_extension.cpp
threads/threads_kernel_1.cpp
threads/threads_kernel_2.cpp
threads/threads_kernel_shared.cpp
threads/thread_pool_extension.cpp
timer/timer.cpp
stack_trace.cpp
)
set(dlib_needed_libraries)
if(UNIX)
set(CMAKE_THREAD_PREFER_PTHREAD ON)
find_package(Threads REQUIRED)
set(dlib_needed_libraries ${dlib_needed_libraries} ${CMAKE_THREAD_LIBS_INIT})
endif()
# we want to link to the right stuff depending on our platform.
if (WIN32 AND NOT CYGWIN) ###############################################################################
if (DLIB_NO_GUI_SUPPORT)
set (dlib_needed_libraries ws2_32 winmm)
else()
set (dlib_needed_libraries ws2_32 winmm comctl32 gdi32 imm32)
endif()
elseif(APPLE) ############################################################################
没有合适的资源?快使用搜索试试~ 我知道了~
dlib arm平台加速
共1643个文件
h:955个
cpp:288个
c:173个
需积分: 9 0 下载量 21 浏览量
2023-03-14
15:31:52
上传
评论
收藏 5.03MB ZIP 举报
温馨提示
alib arm
资源推荐
资源详情
资源评论
收起资源包目录
dlib arm平台加速 (1643个子文件)
READ THE README. DO NOT EDIT THE TABLE OF CONTENTS FILE 0B
READ THE README. DO NOT EDIT THE TABLE OF CONTENTS FILE2 0B
READ THE README. DO NOT EDIT THE TABLE OF CONTENTS FILE3 0B
add_python_module 8KB
bash_helper_functions 737B
pngrtran.c 167KB
png.c 145KB
pngrutil.c 138KB
pngread.c 130KB
pngwutil.c 87KB
pngwrite.c 72KB
deflate.c 70KB
inflate.c 52KB
pngset.c 46KB
trees.c 43KB
pngpread.c 35KB
pngget.c 32KB
pngerror.c 28KB
pngtrans.c 24KB
infback.c 22KB
gzread.c 18KB
pngwtran.c 17KB
gzlib.c 16KB
gzwrite.c 16KB
inffast.c 13KB
crc32.c 13KB
inftrees.c 13KB
pngmem.c 8KB
zutil.c 7KB
pngwio.c 5KB
adler32.c 5KB
pngrio.c 4KB
cblas_zgbmv.c 4KB
cblas_cgbmv.c 4KB
cblas_cgemv.c 4KB
cblas_zgemv.c 4KB
cblas_ztbsv.c 3KB
cblas_ctbsv.c 3KB
cblas_ztbmv.c 3KB
cblas_ctbmv.c 3KB
cblas_dtrsm.c 3KB
cblas_ztrsv.c 3KB
cblas_ctrsv.c 3KB
cblas_ztrmv.c 3KB
cblas_ctrmv.c 3KB
cblas_ztrsm.c 3KB
cblas_ctrsm.c 3KB
cblas_ztrmm.c 3KB
cblas_dtrmm.c 3KB
cblas_strsm.c 3KB
cblas_ctrmm.c 3KB
cblas_strmm.c 3KB
cblas_ztpsv.c 3KB
cblas_ctpsv.c 3KB
cblas_ztpmv.c 3KB
cblas_ctpmv.c 3KB
cblas_zhbmv.c 3KB
cblas_chbmv.c 3KB
cblas_zhemv.c 3KB
cblas_chemv.c 3KB
cblas_zher2.c 3KB
cblas_cher2.c 3KB
cblas_zhpmv.c 3KB
cblas_chpmv.c 3KB
cblas_zhpr2.c 3KB
cblas_chpr2.c 3KB
cblas_stbmv.c 3KB
cblas_dtbsv.c 3KB
cblas_stbsv.c 3KB
cblas_dtbmv.c 3KB
cblas_dtrmv.c 3KB
cblas_strmv.c 3KB
cblas_dtrsv.c 3KB
cblas_strsv.c 3KB
cblas_sgemm.c 3KB
cblas_stpmv.c 3KB
cblas_dtpsv.c 3KB
cblas_dtpmv.c 3KB
cblas_stpsv.c 3KB
cblas_cgemm.c 3KB
cblas_zgemm.c 3KB
cblas_dgemm.c 3KB
compress.c 2KB
cblas_ssyr2k.c 2KB
cblas_cher2k.c 2KB
cblas_zher2k.c 2KB
cblas_dsyr2k.c 2KB
cblas_zsyr2k.c 2KB
cblas_csyr2k.c 2KB
cblas_ssyrk.c 2KB
cblas_ssymm.c 2KB
cblas_dsyrk.c 2KB
cblas_zherk.c 2KB
cblas_zsyrk.c 2KB
cblas_cherk.c 2KB
cblas_csyrk.c 2KB
cblas_dsymm.c 2KB
cblas_zsymm.c 2KB
cblas_csymm.c 2KB
cblas_zhemm.c 2KB
共 1643 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
weixin_51311920
- 粉丝: 19
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功