Generate from proto and include as static library in client and server

This commit is contained in:
2026-02-02 20:39:11 +01:00
parent e63ee7103b
commit 3b6727a808
3 changed files with 17 additions and 8 deletions

View File

@@ -1,9 +1,6 @@
cmake_minimum_required(VERSION 3.23)
project(chat_server LANGUAGES CXX)
find_package(protobuf CONFIG REQUIRED)
find_package(gRPC CONFIG REQUIRED)
file(GLOB_RECURSE SOURCES "src/*.ui" "src/*.cpp" "inc/*.h" "res/*.qrc")
add_executable(chat_server
@@ -13,7 +10,5 @@ add_executable(chat_server
target_link_libraries(chat_server
PRIVATE
protobuf::libprotobuf
gRPC::grpc
gRPC::grpc++
proto_static
)