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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
666 B
Text
Raw Permalink Normal View History

2018-06-25 09:44:58 +02:00
# Makefile.
#
2022-03-15 09:18:01 -04:00
# Author: Steffen Vogel <post@steffenvogel.de>
2022-03-15 09:28:57 -04:00
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
2022-07-04 18:20:03 +02:00
# SPDX-License-Identifier: Apache-2.0
2018-06-25 09:44:58 +02:00
if(DEFINED PROTOBUF_COMPILER AND PROTOBUF_FOUND)
add_custom_command(
OUTPUT
villas_pb2.py
COMMAND ${PROTOBUF_COMPILER}
--python_out=${CMAKE_CURRENT_BINARY_DIR}
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()