Skip to content

Commit

Permalink
[build] cmake: Build wpiutil dev executable (wpilibsuite#7578)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Dec 22, 2024
1 parent bb130b6 commit 76625fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wpiutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ configure_file(wpiutil-config.cmake.in ${WPILIB_BINARY_DIR}/wpiutil-config.cmake
install(FILES ${WPILIB_BINARY_DIR}/wpiutil-config.cmake DESTINATION share/wpiutil)
install(EXPORT wpiutil DESTINATION share/wpiutil)

add_executable(wpiutildev src/dev/native/cpp/main.cpp)
wpilib_target_warnings(wpiutildev)
target_link_libraries(wpiutildev wpiutil)

subdir_list(wpiutil_examples "${CMAKE_CURRENT_SOURCE_DIR}/examples")
foreach(example ${wpiutil_examples})
file(GLOB wpiutil_example_src examples/${example}/*.cpp)
Expand Down

0 comments on commit 76625fa

Please sign in to comment.