1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

protobuf: Clean up CMakeLists

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-08-23 14:25:33 +02:00 committed by Niklas Eiling
parent 7e1bad3590
commit 18cdd2a636
2 changed files with 4 additions and 9 deletions

View file

@ -12,7 +12,7 @@
#include <villas/format.hpp>
// Generated message descriptors by protoc
#include <villas/format/villas.pb-c.h>
#include <villas/formats/villas.pb-c.h>
namespace villas {
namespace node {

View file

@ -25,18 +25,13 @@ if(DEFINED PROTOBUFC_COMPILER AND PROTOBUFC_FOUND)
COMMAND ${PROTOBUFC_COMPILER}
--c_out=${CMAKE_CURRENT_BINARY_DIR}
villas.proto
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_BINARY_DIR}/villas.pb-c.h
${CMAKE_BINARY_DIR}/include/villas/formats/villas.pb-c.h
MAIN_DEPENDENCY villas.proto
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_command(
OUTPUT
${CMAKE_BINARY_DIR}/include/villas/formats/villas.pb-c.h
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_BINARY_DIR}/villas.pb-c.h
${CMAKE_BINARY_DIR}/include/villas/formats
MAIN_DEPENDENCY ${CMAKE_CURRENT_BINARY_DIR}/villas.pb-c.h)
list(APPEND FORMAT_SRC
protobuf.cpp
${CMAKE_CURRENT_BINARY_DIR}/villas.pb-c.c