|
@@ -14,6 +14,13 @@ if (NOT Protobuf_FOUND OR Protobuf_VERSION VERSION_LESS "3.0.0")
|
|
|
add_subdirectory("${Protobuf_SOURCE_DIR}/cmake" ${Protobuf_BINARY_DIR})
|
|
|
endif()
|
|
|
|
|
|
+# grpc target requires QT version not less than 5.11
|
|
|
+# earlier versions do not provide required Http2DirectAttribute: https://doc.qt.io/qt-5/whatsnew511.html
|
|
|
+find_package(Qt5 COMPONENTS Core Network REQUIRED)
|
|
|
+if (Qt5Core_VERSION VERSION_LESS "5.11.0")
|
|
|
+ message(FATAL_ERROR "Required Qt version is 5.11+")
|
|
|
+endif()
|
|
|
+
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|