mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-25 13:21:00 +00:00
Use zlib from external/zlib to build the minizip library on Win32
This commit is contained in:
parent
e11cc9193a
commit
6418b44924
2 changed files with 13 additions and 2 deletions
|
@ -5,6 +5,10 @@ cmake_minimum_required(VERSION 2.6)
|
|||
include_directories(external)
|
||||
include_directories(external/TinyThread/source)
|
||||
|
||||
if (WIN32)
|
||||
include_directories(external/zlib/)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(external/AnyOption)
|
||||
add_subdirectory(external/minizip)
|
||||
|
|
11
external/minizip/CMakeLists.txt
vendored
11
external/minizip/CMakeLists.txt
vendored
|
@ -2,7 +2,9 @@ project(minizip)
|
|||
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
find_package(ZLIB REQUIRED)
|
||||
if (UNIX)
|
||||
find_package(ZLIB REQUIRED)
|
||||
endif()
|
||||
|
||||
set (SOURCES
|
||||
ioapi.c
|
||||
|
@ -28,5 +30,10 @@ add_library(minizip
|
|||
${HEADERS}
|
||||
)
|
||||
|
||||
target_link_libraries(minizip z)
|
||||
if (UNIX)
|
||||
target_link_libraries(minizip z)
|
||||
else()
|
||||
target_link_libraries(minizip "${CMAKE_CURRENT_SOURCE_DIR}/../zlib/zlib.lib")
|
||||
endif()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue