mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-25 09:18:18 +00:00
065a64371e
Signed-off-by: oltolm <oleg.tolmatcev@gmail.com>
19 lines
706 B
CMake
19 lines
706 B
CMake
if (USE_SYSTEM_ZLIB)
|
|
message(STATUS "RPCS3: Using system ZLIB")
|
|
find_package(ZLIB QUIET REQUIRED)
|
|
|
|
add_library(3rdparty_zlib INTERFACE)
|
|
target_link_libraries(3rdparty_zlib INTERFACE ZLIB::ZLIB)
|
|
target_compile_definitions(3rdparty_zlib INTERFACE -DZLIB_CONST=1)
|
|
else()
|
|
option(ZLIB_BUILD_EXAMPLES "Enable Zlib Examples" OFF)
|
|
message(STATUS "RPCS3: Using builtin ZLIB")
|
|
set(SKIP_INSTALL_ALL ON)
|
|
add_subdirectory(zlib EXCLUDE_FROM_ALL)
|
|
|
|
add_library(3rdparty_zlib INTERFACE)
|
|
target_link_libraries(3rdparty_zlib INTERFACE zlibstatic)
|
|
target_include_directories(3rdparty_zlib INTERFACE zlib ${CMAKE_CURRENT_BINARY_DIR}/zlib)
|
|
target_compile_definitions(3rdparty_zlib INTERFACE -DZLIB_CONST=1)
|
|
endif()
|