From 478ebd861b7ecd2ef3f72f01df644432e7de7cd6 Mon Sep 17 00:00:00 2001 From: Christian Nowke <nowke@vr.rwth-aachen.de> Date: Mon, 11 Apr 2016 17:34:24 +0200 Subject: [PATCH] changed macro to generates C++ code too --- CMake/CMakeHelpers.cmake | 4 ++++ CMakeLists.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/CMake/CMakeHelpers.cmake b/CMake/CMakeHelpers.cmake index a237e6e..4c1466d 100644 --- a/CMake/CMakeHelpers.cmake +++ b/CMake/CMakeHelpers.cmake @@ -1,5 +1,9 @@ #add docu macro (add_event arg1 event_name dir dir_out) + + exec_program( "protoc" "${PROTOBUF_BIN}" ARGS "${dir}/${event_name}.proto" "--proto_path=${dir}" "--cpp_out=${dir}" OUTPUT_VARIABLE output ) + message ("output of protoc is: ${output}") + message ("${dir}") exec_program( "protoc" "${PROTOBUF_BIN}" ARGS "${dir}/${event_name}.proto" "--proto_path=${dir}" "--python_out=${dir_out}" OUTPUT_VARIABLE output ) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd5cdfb..502924c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,7 @@ include_directories ("${CMAKE_CURRENT_BINARY_DIR}") add_event ( nett_python routing_message ${NETT_SCHEMA_DIR} ${PROJECT_BINARY_DIR} ) add_event ( nett_python string_message ${NETT_SCHEMA_DIR} ${PROJECT_BINARY_DIR} ) +add_event ( nett_python float_message ${NETT_SCHEMA_DIR} ${PROJECT_BINARY_DIR} ) add_library (nett_python SHARED ${ProjectSources} ${nett_python_EVENT_SOURCE_FILES}) target_link_libraries( nett_python optimized ${NETT_LIBRARY} debug ${NETT_LIBRARY_DEBUG}) -- GitLab