Files
m2dev-client-src/vendor/lzo-2.10/CMakeLists.txt
mq1n e172d6cff6 Update CMake minimum required version to 3.10
Raised the minimum required CMake version to 3.10 in cryptopp and zlib CMakeLists.txt files to ensure compatibility with newer CMake features and improve build consistency
2025-08-23 09:28:17 +03:00

25 lines
602 B
CMake

cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
project(lzo2 VERSION 2.10 LANGUAGES C)
# Collect sources
file(GLOB lzo2_SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/src/*.c"
)
list(SORT lzo2_SOURCES)
# Static library
add_library(lzo2 STATIC ${lzo2_SOURCES})
# Public headers for consumers (works when added as a subdir)
target_include_directories(lzo2
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/include"
)
# Nice-to-haves
set_target_properties(lzo2 PROPERTIES
OUTPUT_NAME "lzo2" # lib name on disk
POSITION_INDEPENDENT_CODE ON # useful if linked into shared libs
)