include(CMakeFindDependencyMacro)

find_dependency(${QT_VERSIONED_PREFIX} COMPONENTS Network REQUIRED CONFIG)

set(QT_PROTOBUF_NATIVE_GRPC_CHANNEL @QT_PROTOBUF_NATIVE_GRPC_CHANNEL@)
if(QT_PROTOBUF_NATIVE_GRPC_CHANNEL)
    find_dependency(Threads)
    find_dependency(gRPC)
endif()

if(NOT TARGET @QT_PROTOBUF_NAMESPACE@::@target@)
    include("${CMAKE_CURRENT_LIST_DIR}/@target_export@.cmake")
endif()

if(QT_PROTOBUF_STATIC AND NOT TARGET @QT_PROTOBUF_NAMESPACE@::@GRPC_QUICK_PLUGIN_NAME@)
    include("${CMAKE_CURRENT_LIST_DIR}/@GRPC_QUICK_PLUGIN_NAME@Targets.cmake")
endif()

@PACKAGE_INIT@
