mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-01-22 15:31:08 +00:00
6dac1d8c0e
The zlib build system is not integrated with the updater's build system. Rather than write a small CMakeLists.txt for the build, this commit just adds a pre-built version of zlib
39 lines
549 B
CMake
39 lines
549 B
CMake
project(minizip)
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
if (UNIX)
|
|
find_package(ZLIB REQUIRED)
|
|
endif()
|
|
|
|
set (SOURCES
|
|
ioapi.c
|
|
unzip.c
|
|
zip.c
|
|
)
|
|
|
|
set (HEADERS
|
|
ioapi.h
|
|
unzip.h
|
|
zip.h
|
|
)
|
|
|
|
if (APPLE)
|
|
# Mac OS X does not have fopen64()
|
|
# and several related functions as the standard fopen()
|
|
# calls are 64bit
|
|
add_definitions("-DUSE_FILE32API")
|
|
endif()
|
|
|
|
add_library(minizip
|
|
${SOURCES}
|
|
${HEADERS}
|
|
)
|
|
|
|
if (UNIX)
|
|
target_link_libraries(minizip z)
|
|
else()
|
|
target_link_libraries(minizip "${CMAKE_CURRENT_SOURCE_DIR}/../zlib/prebuilt/zlib.lib")
|
|
endif()
|
|
|
|
|