set(QT_VERSIONED_PREFIX @QT_VERSIONED_PREFIX@) set(QT_PROTOBUF_STATIC @QT_PROTOBUF_STATIC@) set(QT_PROTOBUF_NAMESPACE @QT_PROTOBUF_NAMESPACE@) list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") foreach(component ${@PROJECT_NAME@_FIND_COMPONENTS}) # For requested component, execute its "config" script if(component STREQUAL "ProtobufGenerator") include(${CMAKE_CURRENT_LIST_DIR}/@QT_PROTOBUF_NAMESPACE@qtprotobufgenConfig.cmake) continue() endif() set(component_config "${CMAKE_CURRENT_LIST_DIR}/@QT_PROTOBUF_NAMESPACE@${component}Config.cmake") if(NOT EXISTS "${component_config}") message(FATAL_ERROR "Component ${component} not found") endif() include("${component_config}") endforeach()