24.09., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

elsaConfig.cmake.in 941 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 6
find_dependency(spdlog REQUIRED)
find_dependency(OpenMP QUIET)
Tobias Lasser's avatar
Tobias Lasser committed
7 8

set(_supported_components @ELSA_REGISTERED_COMPONENTS@)
9 10 11 12 13 14

# 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()
15
    message(STATUS "elsa found at ${CMAKE_CURRENT_LIST_DIR}")
16 17 18 19 20 21 22 23 24 25 26
    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()