2022-07-23 23:10:10 -06:00
|
|
|
set(ZLIB_ENABLE_TESTS OFF)
|
|
|
|
set(ZLIB_COMPAT ON)
|
2022-07-27 04:29:51 -06:00
|
|
|
set(SKIP_INSTALL_ALL ON)
|
2022-07-23 23:10:10 -06:00
|
|
|
|
|
|
|
option(BUILD_SHARED_LIBS "Build shared library" OFF)
|
|
|
|
|
|
|
|
add_subdirectory(zlib-ng)
|
|
|
|
|
|
|
|
# Set ZLIB variables for find_package used by other projects
|
|
|
|
set(ZLIB_INCLUDE_DIR ${CMAKE_BINARY_DIR}/zlib-ng CACHE STRING "Path to zlib include directory")
|
|
|
|
set(ZLIB_LIBRARY ZLIB::ZLIB CACHE STRING "Path to zlib library")
|
|
|
|
|
|
|
|
# Setup zlib alias project so FindZLIB doesn't recreate it
|
|
|
|
add_library(ZLIB::ZLIB ALIAS zlib)
|
2024-03-19 00:08:54 -06:00
|
|
|
dolphin_disable_warnings(zlib)
|