include("${CMAKE_CURRENT_LIST_DIR}/ProtobufLookup.cmake")

set(QT_PROTOBUF_STATIC @QT_PROTOBUF_STATIC@)

if(QT_PROTOBUF_STATIC)
    include(CMakeFindDependencyMacro)
    find_dependency(microjson REQUIRED CONFIG)
endif()

if(NOT TARGET @GENERATOR_TARGET@ AND NOT @GENERATOR_TARGET@_BINARY_DIR)
    include("${CMAKE_CURRENT_LIST_DIR}/@GENERATOR_TARGET@Targets.cmake")
endif()

if(NOT TARGET @TARGET@ AND NOT @TARGET@_BINARY_DIR)
    include("${CMAKE_CURRENT_LIST_DIR}/@TARGET_EXPORT@.cmake")
endif()

if(QT_PROTOBUF_STATIC AND NOT TARGET @PROTOBUF_QUICK_PLUGIN_NAME@ AND NOT @PROTOBUF_QUICK_PLUGIN_NAME@_BINARY_DIR)
    include("${CMAKE_CURRENT_LIST_DIR}/@PROTOBUF_QUICK_PLUGIN_NAME@Targets.cmake")
endif()

@PACKAGE_INIT@
set(PROTO_PARSER "${CMAKE_CURRENT_LIST_DIR}/parsemessages.go")
set(GENERATOR_TARGET "@GENERATOR_TARGET@")
set(QT_PROTOBUF_PROJECT "@QT_PROTOBUF_PROJECT@")

if(QT_PROTOBUF_STATIC)
    add_definitions(-DQT_PROTOBUF_STATIC)#Old cmake versions compatibility
endif()
include("${CMAKE_CURRENT_LIST_DIR}/QtProtobufGen.cmake")
