gRPC-demo/controller/CMakeLists.txt
2025-01-14 14:50:41 +01:00

28 lines
502 B
CMake

# Include the headers generated by the protobuffers
include_directories(${PROTOBUFFER_HDRS_DIR})
file(
GLOB CONTROLLER_SRCS
"*.cpp"
)
# Add the main executable
add_executable(
${PROJECT_NAME}_controller
${CONTROLLER_SRCS}
)
target_link_libraries(${PROJECT_NAME}_controller
${PROTOBUFFER_LIB}
absl::check
absl::flags
absl::flags_parse
absl::log
${_GRPC_GRPC}
${_GRPC_GRPCPP}
${_GRPC_GRPCPP_REFLECTION}
${_PROTOBUF_LIBPROTOBUF}
${_GRPC_GPR}
)