Skip to content

Commit

Permalink
[cmake] Use binary output dir for generated field images code (#7772)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher31 authored Feb 10, 2025
1 parent 53df127 commit b2584c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,6 @@ bazel_auth.rc

# ctest
/Testing/

# Meson
.meson-subproject*
4 changes: 2 additions & 2 deletions fieldImages/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ endif()

generate_resources(
src/main/native/resources/edu/wpi/first/fields
generated/main/cpp
${CMAKE_CURRENT_BINARY_DIR}/generated/main/cpp
FIELDS
fields
field_images_resources_src
)

add_library(fieldImages src/main/native/cpp/fields.cpp ${field_images_resources_src})
add_library(fieldImages ${field_images_resources_src} src/main/native/cpp/fields.cpp)
set_target_properties(fieldImages PROPERTIES DEBUG_POSTFIX "d")

set_property(TARGET fieldImages PROPERTY FOLDER "libraries")
Expand Down

0 comments on commit b2584c6

Please sign in to comment.