2017-09-05 05:37:40 +00:00
|
|
|
project(minizip C)
|
|
|
|
|
|
|
|
set(SRCS ioapi.c unzip.c)
|
|
|
|
|
|
|
|
add_definitions(-DNOUNCRYPT)
|
|
|
|
if(UNIX)
|
|
|
|
add_definitions(-D__USE_FILE_OFFSET64)
|
|
|
|
add_definitions(-D__USE_LARGEFILE64)
|
|
|
|
add_definitions(-D_LARGEFILE64_SOURCE)
|
|
|
|
add_definitions(-D_FILE_OFFSET_BIT=64)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(minizip STATIC ${SRCS})
|
|
|
|
target_include_directories(minizip PUBLIC .)
|
|
|
|
|
2020-06-05 21:01:16 +00:00
|
|
|
target_link_libraries(minizip PUBLIC ZLIB::ZLIB)
|
2019-05-08 18:58:16 +00:00
|
|
|
|
2017-09-05 05:37:40 +00:00
|
|
|
add_library(MiniZip::minizip ALIAS minizip)
|