Update CmakeLists: add png for arm (#1580)

This commit is contained in:
RedfalconAI 2018-12-06 04:36:50 +02:00 committed by Davis E. King
parent e73d3adc0e
commit 4b2ef5b8f9
1 changed files with 3 additions and 1 deletions

View File

@ -447,6 +447,8 @@ if (NOT TARGET dlib)
# If we can't find libpng then statically compile it in. # If we can't find libpng then statically compile it in.
include_directories(external/libpng external/zlib) include_directories(external/libpng external/zlib)
set(source_files ${source_files} set(source_files ${source_files}
external/libpng/arm/arm_init.c
external/libpng/arm/filter_neon_intrinsics.c
external/libpng/png.c external/libpng/png.c
external/libpng/pngerror.c external/libpng/pngerror.c
external/libpng/pngget.c external/libpng/pngget.c
@ -953,4 +955,4 @@ if (COMMAND pybind11_add_module)
set_target_properties(dlib PROPERTIES CUDA_VISIBILITY_PRESET "hidden") set_target_properties(dlib PROPERTIES CUDA_VISIBILITY_PRESET "hidden")
endif() endif()
add_library(dlib::dlib ALIAS dlib) add_library(dlib::dlib ALIAS dlib)