Skip to content

Commit

Permalink
Add logging of generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Jan 1, 2024
1 parent a9a5243 commit 538c6a9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions wpimath/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,23 @@ add_library(wpimath ${wpimath_native_src} ${WPIMATH_PROTO_SRCS})
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
set_target_properties(wpimath PROPERTIES DEBUG_POSTFIX "d")

add_custom_command(
TARGET wpimath
PRE_LINK
COMMAND echo plant.pb.h:
COMMAND cat ${CMAKE_CURRENT_BINARY_DIR}/protobuf/plant.pb.h
COMMAND echo ''
COMMAND echo plant.pb.cc:
COMMAND cat ${CMAKE_CURRENT_BINARY_DIR}/protobuf/plant.pb.cc
COMMAND echo ''
COMMAND echo wpimath.pb.h:
COMMAND cat ${CMAKE_CURRENT_BINARY_DIR}/protobuf/wpimath.pb.h
COMMAND echo ''
COMMAND echo wpimath.pb.cc:
COMMAND cat ${CMAKE_CURRENT_BINARY_DIR}/protobuf/wpimath.pb.cc
VERBATIM
)

set_property(TARGET wpimath PROPERTY FOLDER "libraries")
target_compile_definitions(wpimath PRIVATE WPILIB_EXPORTS)

Expand Down

0 comments on commit 538c6a9

Please sign in to comment.