diff --git a/OdbDesignLib/CMakeLists.txt b/OdbDesignLib/CMakeLists.txt index df0f1127..d3b53176 100644 --- a/OdbDesignLib/CMakeLists.txt +++ b/OdbDesignLib/CMakeLists.txt @@ -85,6 +85,10 @@ target_link_libraries(OdbDesign PUBLIC protobuf::libprotobuf) # add the generated Protobuf C++ files to the target #target_sources(OdbDesign PRIVATE ${PROTO_SRCS} ${PROTO_HDRS}) +# gRPC +find_package(gRPC CONFIG REQUIRED) +target_link_libraries(OdbDesign PUBLIC gRPC::grpc++) + # workaround to remove error: "C++ command-line error: invalid macro definition: _CROW_ICD-NOTFOUND" # (see https://github.com/CrowCpp/Crow/issues/661#issuecomment-1702544225) list(REMOVE_ITEM _CROW_ICD "_CROW_ICD-NOTFOUND") diff --git a/vcpkg.json b/vcpkg.json index 7e6ae209..6df281ea 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -9,6 +9,12 @@ "zlib" ] }, - "openssl" + "openssl", + { + "name": "grpc", + "features": [ + "codegen" + ] + } ] }