-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathSofaPython3Config.cmake.in
More file actions
28 lines (25 loc) · 1.22 KB
/
Copy pathSofaPython3Config.cmake.in
File metadata and controls
28 lines (25 loc) · 1.22 KB
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
# CMake package configuration file for the @PROJECT_NAME@ module
@PACKAGE_INIT@
set(SP3_WITH_SOFAEXPORTER @SP3_WITH_SOFAEXPORTER@)
if (SofaPython3_FIND_COMPONENTS)
foreach(component ${SofaPython3_FIND_COMPONENTS})
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/${component}Config.cmake")
# For requested component, execute its "config" script
set_and_check(config_file ${CMAKE_CURRENT_LIST_DIR}/${component}Config.cmake)
include(${config_file})
set(SofaPython3_${component}_FOUND True)
else()
set(SofaPython3_FOUND False)
set(SofaPython3_NOT_FOUND_MESSAGE "Unsupported component: ${component}.")
endif()
endforeach()
else()
foreach(component Plugin Bindings)
# For all available components, execute its "config" script
set_and_check(config_file "${CMAKE_CURRENT_LIST_DIR}/${component}Config.cmake")
include(${config_file})
set(Caribou_${component}_FOUND True)
endforeach()
endif()
# Check that the component/target is there.
check_required_components(@PROJECT_NAME@)