QtqtprotobufgenConfig.cmake.in 526 B

1234567891011121314
  1. include(CMakeFindDependencyMacro)
  2. # We only look for protoc, libprotoc should already be in rpath or linked statically
  3. set(_save_cmake_module_path "${CMAKE_MODULE_PATH}")
  4. set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
  5. find_package(WrapProtobuf COMPONENTS Generator REQUIRED)
  6. set(CMAKE_MODULE_PATH "${_save_cmake_module_path}")
  7. if(NOT TARGET @QT_PROTOBUF_NAMESPACE@::@target@)
  8. include("${CMAKE_CURRENT_LIST_DIR}/@target_export@.cmake")
  9. endif()
  10. @PACKAGE_INIT@
  11. include("${CMAKE_CURRENT_LIST_DIR}/QtProtobufGen.cmake")