OrcaSlicer/deps_src/minilzo/CMakeLists.txt
SoftFever 883607e1d4
Refactor folder (#10475)
Move many third-party components' source codes from the src folder to a new folder called deps_src. The goal is to make the code structure clearer and easier to navigate.
2025-08-22 20:02:26 +08:00

22 lines
467 B
CMake

project(minilzo)
cmake_minimum_required(VERSION 3.13)
add_library(minilzo INTERFACE)
add_library(minilzo_static STATIC
minilzo.c
minilzo.h
lzodefs.h
lzoconf.h
)
if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
target_compile_definitions(minilzo_static PRIVATE _GNU_SOURCE)
endif()
target_link_libraries(minilzo INTERFACE minilzo_static)
target_include_directories(minilzo INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
message(STATUS "Minilzo using bundled version...")