cmake_minimum_required(VERSION 3.14)
project(userver-samples-grpc_middleware_service CXX)
find_package(userver COMPONENTS grpc REQUIRED)
add_executable(${PROJECT_NAME} src/main.cpp
src/client/view.cpp
src/http_handlers/say-hello/view.cpp
src/service/view.cpp
src/middlewares/client/component.cpp
src/middlewares/client/middleware.cpp
src/middlewares/server/component.cpp
src/middlewares/server/middleware.cpp
src/middlewares/auth.cpp)
target_include_directories(${PROJECT_NAME} PRIVATE src)
#
userver_add_grpc_library(${PROJECT_NAME}-proto PROTOS samples/greeter.proto)
target_link_libraries(${PROJECT_NAME} ${PROJECT_NAME}-proto)
#
userver_testsuite_add_simple()