1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/python/CMakeLists.txt
Steffen Vogel dc7e51c293 protobuf: Fix output path for protoc
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-03-26 23:59:51 +01:00

22 lines
678 B
CMake

# Makefile.
#
# Author: Steffen Vogel <post@steffenvogel.de>
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
if(DEFINED PROTOBUF_COMPILER AND PROTOBUF_FOUND)
add_custom_command(
OUTPUT
villas_pb2.py
COMMAND ${PROTOBUF_COMPILER}
--python_out=${CMAKE_CURRENT_SOURCE_DIR}/villas/node
villas.proto
MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/lib/formats/villas.proto
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/lib/formats
)
add_custom_target(python ALL
DEPENDS
villas_pb2.py
)
endif()