Update-Installer/external/minizip/CMakeLists.txt

33 lines
415 B
Text
Raw Normal View History

project(minizip)
cmake_minimum_required(VERSION 2.6)
find_package(ZLIB REQUIRED)
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}
)
target_link_libraries(minizip z)