Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « libigl « src - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3daac757b17536c80fb16f05ecc3c37040e6ba4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
project(libigl)
cmake_minimum_required(VERSION 3.0)

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 ${LIBDIR}/libigl)
endif()