mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-19 19:12:23 -07:00
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.
22 lines
467 B
CMake
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...")
|
|
|