ProjectConfig.cmake.in 752 B

12345678910111213141516
  1. set(QT_VERSIONED_PREFIX @QT_VERSIONED_PREFIX@)
  2. set(QT_PROTOBUF_STATIC @QT_PROTOBUF_STATIC@)
  3. set(QT_PROTOBUF_NAMESPACE @QT_PROTOBUF_NAMESPACE@)
  4. list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
  5. foreach(component ${@PROJECT_NAME@_FIND_COMPONENTS})
  6. # For requested component, execute its "config" script
  7. if(component STREQUAL "ProtobufGenerator")
  8. include(${CMAKE_CURRENT_LIST_DIR}/@QT_PROTOBUF_NAMESPACE@qtprotobufgenConfig.cmake)
  9. continue()
  10. endif()
  11. set(component_config "${CMAKE_CURRENT_LIST_DIR}/@QT_PROTOBUF_NAMESPACE@${component}Config.cmake")
  12. if(NOT EXISTS "${component_config}")
  13. message(FATAL_ERROR "Component ${component} not found")
  14. endif()
  15. include("${component_config}")
  16. endforeach()