2013-07-30 18:02:55 +03:00
|
|
|
project(minizip)
|
|
|
|
|
|
|
|
include_directories(${ZLIB_INCLUDE_DIR})
|
|
|
|
|
|
|
|
#NOTE: full library consists from several more files
|
|
|
|
# but right now VCMI does not need any extra functionality
|
|
|
|
set(lib_SRCS
|
|
|
|
unzip.c
|
2013-07-31 14:36:42 +03:00
|
|
|
zip.c
|
2013-07-30 18:02:55 +03:00
|
|
|
ioapi.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(minizip SHARED ${lib_SRCS})
|
2014-10-12 16:41:05 +03:00
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(minizip PROPERTIES COMPILE_DEFINITIONS "MINIZIP_DLL;ZLIB_DLL;ZLIB_INTERNAL")
|
|
|
|
endif()
|
|
|
|
|
2017-08-07 18:43:32 +02:00
|
|
|
vcmi_set_output_dir(minizip "")
|
2017-07-06 22:23:08 +02:00
|
|
|
|
2013-07-30 18:02:55 +03:00
|
|
|
target_link_libraries(minizip ${ZLIB_LIBRARIES})
|
|
|
|
|
2017-08-12 20:58:09 +02:00
|
|
|
install(TARGETS minizip RUNTIME DESTINATION ${LIB_DIR} LIBRARY DESTINATION ${LIB_DIR})
|