forked from elalish/manifold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifoldConfig.cmake.in
30 lines (29 loc) · 1.09 KB
/
manifoldConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Compute the installation prefix relative to this file, so we can have the
# subsequent find_package calls first check for bundled dependencies.
get_filename_component(_FIND_ROOT "${CMAKE_CURRENT_LIST_FILE}" PATH)
# CMAKE_CURRENT_LIST_FILE path is several directories below the path we want
# for _FIND_ROOT, so we need multiple get_filename_component calls to trim it
# back to the the root path.
get_filename_component(_FIND_ROOT "${_FIND_ROOT}" PATH)
get_filename_component(_FIND_ROOT "${_FIND_ROOT}" PATH)
get_filename_component(_FIND_ROOT "${_FIND_ROOT}" PATH)
if(_FIND_ROOT STREQUAL "/")
set(_FIND_ROOT "")
endif()
set(MANIFOLD_CROSS_SECTION "@MANIFOLD_CROSS_SECTION@")
if(MANIFOLD_CROSS_SECTION)
set(Clipper2_ROOT "${_FIND_ROOT}")
find_package(Clipper2 REQUIRED)
endif()
set(MANIFOLD_PAR "@MANIFOLD_PAR@")
if(MANIFOLD_PAR STREQUAL "ON")
find_package(TBB REQUIRED)
if(APPLE)
find_package(oneDPL REQUIRED)
endif()
endif()
set(MANIFOLD_EXPORT "@MANIFOLD_EXPORT@")
if(MANIFOLD_EXPORT)
find_package(assimp REQUIRED)
endif(MANIFOLD_EXPORT)
include("${CMAKE_CURRENT_LIST_DIR}/manifoldTargets.cmake")