mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-02 08:30:25 +00:00
17 lines
426 B
CMake
17 lines
426 B
CMake
include(FetchContent)
|
|
|
|
FetchContent_Declare(zlib
|
|
GIT_REPOSITORY "https://github.com/madler/zlib"
|
|
GIT_TAG "v1.2.11"
|
|
)
|
|
|
|
FetchContent_GetProperties(zlib)
|
|
if (NOT zlib_POPULATED)
|
|
FetchContent_Populate(zlib)
|
|
endif()
|
|
|
|
add_subdirectory("${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}" EXCLUDE_FROM_ALL)
|
|
|
|
set(ZLIB_LIBRARIES "zlibstatic" PARENT_SCOPE)
|
|
set(ZLIB_INCLUDE_DIRS "${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}" PARENT_SCOPE)
|