CMakeLists.txt 648 B

12345678910111213141516171819
  1. cmake_minimum_required(VERSION 3.16)
  2. include(.cmake.conf)
  3. project(QtProtobuf
  4. VERSION "${QT_REPO_MODULE_VERSION}"
  5. DESCRIPTION "Qt gRPC and Protobuf generator and bindings."
  6. HOMEPAGE_URL "https://github.com/semlanik/qtprotobuf"
  7. LANGUAGES CXX C
  8. )
  9. # Make sure we use the fixed BASE argument of qt_add_resource.
  10. set(QT_USE_FIXED_QT_ADD_RESOURCE_BASE TRUE)
  11. find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network)
  12. find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Quick Qml Test QuickTest)
  13. include("${CMAKE_CURRENT_LIST_DIR}/src/protobuf/cmake/Qt6ProtobufMacro.cmake")
  14. qt_build_repo()