mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
1d9139303a
- minizip library is now part of sources, located at lib/minizip - cmakefiles will compile minizip as dynamic library (Note: only 2 files used by vcmi are included in minizip.so) - zip files can be loaded similar to other archives via filesystem.json - mods can use Content.zip instead of Content/ directory. Files in directory will replace files in archive.
17 lines
382 B
CMake
17 lines
382 B
CMake
project(minizip)
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
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
|
|
ioapi.c
|
|
)
|
|
|
|
add_library(minizip SHARED ${lib_SRCS})
|
|
target_link_libraries(minizip ${ZLIB_LIBRARIES})
|
|
|
|
install(TARGETS minizip DESTINATION ${LIB_DIR})
|