|
@@ -38,27 +38,27 @@ target_link_libraries(libalmond PUBLIC ${FFMPEG_LIBRARIES})
|
|
if (PNG_FOUND AND LIBALMOND_LIBPNG)
|
|
if (PNG_FOUND AND LIBALMOND_LIBPNG)
|
|
target_link_libraries(libalmond PUBLIC PNG::PNG)
|
|
target_link_libraries(libalmond PUBLIC PNG::PNG)
|
|
target_compile_definitions(libalmond PUBLIC WITH_LIBPNG)
|
|
target_compile_definitions(libalmond PUBLIC WITH_LIBPNG)
|
|
-elseif(LIBALMOND_LIBPNG)
|
|
|
|
- set(PNG_BUILD_ZLIB ON CACHE BOOL "build zlib ourselves")
|
|
|
|
- add_subdirectory(zlib-1.2.11)
|
|
|
|
- set(ZLIB_LIBRARY zlibstatic)
|
|
|
|
- foreach(header ${ZLIB_PUBLIC_HDRS})
|
|
|
|
- get_filename_component(the_incluude ${header} DIRECTORY)
|
|
|
|
- list(APPEND ZLIB_PUB_INCLUDE ${the_incluude})
|
|
|
|
- endforeach()
|
|
|
|
- set(ZLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zlib-1.2.11 ${ZLIB_PUB_INCLUDE} )
|
|
|
|
-
|
|
|
|
- set(SKIP_INSTALL_ALL ON)
|
|
|
|
- add_subdirectory(lpng1637)
|
|
|
|
- foreach(header ${libpng_public_hdrs})
|
|
|
|
- get_filename_component(the_incluude ${header} DIRECTORY)
|
|
|
|
- list(APPEND PNG_PUB_INCLUDE ${the_incluude})
|
|
|
|
- endforeach()
|
|
|
|
- #target_link_libraries(png_static PRIVATE zlibstatic)
|
|
|
|
- target_include_directories(libalmond PRIVATE ${PNG_PUB_INCLUDE})
|
|
|
|
- target_include_directories(libalmond PRIVATE ${ZLIB_INCLUDE_DIR})
|
|
|
|
- target_link_libraries(libalmond PRIVATE png_static)
|
|
|
|
- target_compile_definitions(libalmond PUBLIC WITH_LIBPNG)
|
|
|
|
|
|
+#elseif(LIBALMOND_LIBPNG)
|
|
|
|
+# set(PNG_BUILD_ZLIB ON CACHE BOOL "build zlib ourselves")
|
|
|
|
+# add_subdirectory(zlib-1.2.11)
|
|
|
|
+# set(ZLIB_LIBRARY zlibstatic)
|
|
|
|
+# foreach(header ${ZLIB_PUBLIC_HDRS})
|
|
|
|
+# get_filename_component(the_incluude ${header} DIRECTORY)
|
|
|
|
+# list(APPEND ZLIB_PUB_INCLUDE ${the_incluude})
|
|
|
|
+# endforeach()
|
|
|
|
+# set(ZLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zlib-1.2.11 ${ZLIB_PUB_INCLUDE} )
|
|
|
|
+#
|
|
|
|
+# set(SKIP_INSTALL_ALL ON)
|
|
|
|
+# add_subdirectory(lpng1637)
|
|
|
|
+# foreach(header ${libpng_public_hdrs})
|
|
|
|
+# get_filename_component(the_incluude ${header} DIRECTORY)
|
|
|
|
+# list(APPEND PNG_PUB_INCLUDE ${the_incluude})
|
|
|
|
+# endforeach()
|
|
|
|
+# #target_link_libraries(png_static PRIVATE zlibstatic)
|
|
|
|
+# target_include_directories(libalmond PRIVATE ${PNG_PUB_INCLUDE})
|
|
|
|
+# target_include_directories(libalmond PRIVATE ${ZLIB_INCLUDE_DIR})
|
|
|
|
+# target_link_libraries(libalmond PRIVATE png_static)
|
|
|
|
+# target_compile_definitions(libalmond PUBLIC WITH_LIBPNG)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
if (JPEG_FOUND AND LIBALMOND_LIBJPEG)
|
|
if (JPEG_FOUND AND LIBALMOND_LIBJPEG)
|