elsaConfig.cmake.in 849 Bytes
Newer Older
Tobias Lasser's avatar
Tobias Lasser committed
1
2
@PACKAGE_INIT@

3
include(CMakeFindDependencyMacro)
Tobias Lasser's avatar
Tobias Lasser committed
4
find_dependency(Eigen3 3.3 NO_MODULE REQUIRED)
5
find_dependency(Spdlog REQUIRED)
Tobias Lasser's avatar
Tobias Lasser committed
6
7

set(_supported_components @ELSA_REGISTERED_COMPONENTS@)
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# if no specific components requested, include all
if(NOT elsa_FIND_COMPONENTS)
    foreach(_comp ${_supported_components})
        include(${CMAKE_CURRENT_LIST_DIR}/elsa_${_comp}Targets.cmake)
    endforeach()
    message(STATUS "elsa found, using all modules")
else()
    foreach(_comp ${elsa_FIND_COMPONENTS})
        if (NOT _comp IN_LIST _supported_components)
            set(elsa_FOUND False)
            set(elsa_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
        endif()
        include(${CMAKE_CURRENT_LIST_DIR}/elsa_${_comp}Targets.cmake)
    endforeach()
    message(STATUS "elsa found, using components: ${elsa_FIND_COMPONENTS}")
endif()