mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-10 09:50:17 +02:00
40af43c46e
- macOS: RPATH-related code all removed or disabled - macOS: new osx/CMakeLists.txt to run some install-code running after all subdirectories - Assets copying into the runtime output directory implemented for Mac and Linux development
23 lines
547 B
CMake
23 lines
547 B
CMake
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
|
|
zip.c
|
|
ioapi.c
|
|
)
|
|
|
|
add_library(minizip SHARED ${lib_SRCS})
|
|
if(MSVC)
|
|
set_target_properties(minizip PROPERTIES COMPILE_DEFINITIONS "MINIZIP_DLL;ZLIB_DLL;ZLIB_INTERNAL")
|
|
endif()
|
|
|
|
vcmi_set_output_dir(minizip "")
|
|
|
|
target_link_libraries(minizip ${ZLIB_LIBRARIES})
|
|
|
|
install(TARGETS minizip RUNTIME DESTINATION ${LIB_DIR} LIBRARY DESTINATION ${LIB_DIR})
|