include(CMakeFindDependencyMacro)

if(NOT @BUILD_SHARED_LIBS@)
    if(${CMAKE_VERSION} VERSION_LESS "3.9.0")
        find_package(CURL REQUIRED CONFIG)
    else()
        find_dependency(CURL REQUIRED CONFIG)
    endif()

    find_dependency(Threads)
    find_dependency(jsoncpp)
    find_dependency(tinyxml2)

    if(@BUILD_MAVSDK_SERVER@)
        find_dependency(gRPC)
    endif()
endif()

get_filename_component(MAVSDK_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include("${MAVSDK_CMAKE_DIR}/MAVSDKTargets.cmake")
