mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-04 05:50:37 -07: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
17 lines
430 B
CMake
17 lines
430 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
|
|
project(libigl)
|
|
|
|
add_library(libigl INTERFACE)
|
|
|
|
find_package(libigl QUIET)
|
|
|
|
if(libigl_FOUND)
|
|
message(STATUS "IGL found, using system version...")
|
|
target_link_libraries(libigl INTERFACE igl::core)
|
|
else()
|
|
message(STATUS "IGL NOT found, using bundled version...")
|
|
target_include_directories(libigl SYSTEM BEFORE
|
|
INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR})
|
|
endif()
|