|
|
@ -2,13 +2,23 @@ |
|
|
|
# CMake file for libpng. See root CMakeLists.txt |
|
|
|
# CMake file for libpng. See root CMakeLists.txt |
|
|
|
# |
|
|
|
# |
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
project(${PNG_LIBRARY}) |
|
|
|
|
|
|
|
|
|
|
|
if(NEON) |
|
|
|
|
|
|
|
project(${PNG_LIBRARY} ASM) |
|
|
|
|
|
|
|
else() |
|
|
|
|
|
|
|
project(${PNG_LIBRARY}) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}" ${ZLIB_INCLUDE_DIR}) |
|
|
|
ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}" ${ZLIB_INCLUDE_DIR}) |
|
|
|
|
|
|
|
|
|
|
|
file(GLOB lib_srcs *.c) |
|
|
|
file(GLOB lib_srcs *.c) |
|
|
|
file(GLOB lib_hdrs *.h) |
|
|
|
file(GLOB lib_hdrs *.h) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(NEON) |
|
|
|
|
|
|
|
list(APPEND lib_srcs arm/filter_neon.S) |
|
|
|
|
|
|
|
add_definitions(-DPNG_ARM_NEON) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------- |
|
|
|
# Define the library target: |
|
|
|
# Define the library target: |
|
|
|
# ---------------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------------- |
|
|
|