forked from mimesis-inria/caribou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CaribouConfig.cmake.in
30 lines (25 loc) · 1.01 KB
/
CaribouConfig.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
@PACKAGE_INIT@
# OPTIONS
set(CARIBOU_USE_FLOAT "@CARIBOU_USE_FLOAT@")
set(CARIBOU_BUILD_TESTS "@CARIBOU_BUILD_TESTS@")
set(CARIBOU_WITH_SOFA "@CARIBOU_WITH_SOFA@")
set(CARIBOU_WITH_PYTHON_3 "@CARIBOU_WITH_PYTHON_3@")
set(CARIBOU_WITH_EIGEN_MKL "@CARIBOU_WITH_MKL@")
set(CARIBOU_WITH_OPENMP "@CARIBOU_WITH_OPENMP@")
# COMPONENTS
set(CARIBOU_COMPONENTS "@Caribou_COMPONENTS@")
if (NOT Caribou_FIND_COMPONENTS)
set(Caribou_FIND_COMPONENTS ${CARIBOU_COMPONENTS})
endif()
foreach(component ${Caribou_FIND_COMPONENTS})
if (NOT ";${CARIBOU_COMPONENTS};" MATCHES ${component})
set(Caribou_FOUND False)
set(Caribou_NOT_FOUND_MESSAGE "Unsupported component: ${component}. Available components are ${CARIBOU_COMPONENTS}")
else()
# For requested component, execute its "config" script
set_and_check(config_file ${CMAKE_CURRENT_LIST_DIR}/${component}Config.cmake)
include(${config_file})
set(Caribou_${component}_FOUND True)
endif()
endforeach()
check_required_components(Caribou)