2020-10-23 09:10:00 +00:00
|
|
|
set(_prefix_line "")
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
|
|
set(_prefix_line "-DPNG_PREFIX=prusaslicer_")
|
|
|
|
endif()
|
|
|
|
|
2020-04-28 07:56:54 +00:00
|
|
|
prusaslicer_add_cmake_project(PNG
|
|
|
|
GIT_REPOSITORY https://github.com/glennrp/libpng.git
|
|
|
|
GIT_TAG v1.6.35
|
|
|
|
DEPENDS ${ZLIB_PKG}
|
|
|
|
CMAKE_ARGS
|
|
|
|
-DPNG_SHARED=OFF
|
|
|
|
-DPNG_STATIC=ON
|
2020-10-23 09:10:00 +00:00
|
|
|
${_prefix_line}
|
2020-04-28 07:56:54 +00:00
|
|
|
-DPNG_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
add_debug_dep(dep_PNG)
|
|
|
|
endif ()
|