tile/third_party/zlib/CMakeLists.txt

16 lines
416 B
CMake
Raw Normal View History

2024-12-19 13:14:37 +08:00
cmake_minimum_required(VERSION 3.5)
project(
zlib
VERSION 1.3.1.1
LANGUAGES C)
file(GLOB SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/zlib/*.c")
add_library(zlib STATIC ${SRC_FILES})
target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/zlib)
add_library(ZLIB::ZLIB ALIAS zlib)
install(
TARGETS zlib
EXPORT zlib
DESTINATION lib)