mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
* src/*/CMakeLists.txt: adds SYSTEM to arget_include_directories() * src/*/CMakeLists.txt: removes duplicate sources from lisbslic3r_sources and SLIC3R_GUI_SOURCES" * .gititnore: adds CMakeLists.txt.user and CMakeLists.txt.autosave * deps_src/*/CMakeLists.txt: adds SYSTEM to arget_include_directories() * removes #pragma once from .cpp file
23 lines
474 B
CMake
23 lines
474 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 SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
message(STATUS "Minilzo using bundled version...")
|
|
|