Skip to content

Commit

Permalink
Merge pull request google-deepmind#32 from hartikainen/fix/tasks-make…
Browse files Browse the repository at this point in the history
…-file-copies

Modify `tasks/CMakeLists.txt` to copy files on build
  • Loading branch information
nimrod-gileadi authored Dec 13, 2022
2 parents 1f7f10c + 8213f91 commit 4d309de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mjpc/tasks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@

# Copy the model files to the binary directory to make them available to the
# built binary.
file(COPY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION ${CMAKE_BINARY_DIR})
add_custom_target(copy_resources ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Copying tasks into binary directory")

add_dependencies(mjpc copy_resources)

0 comments on commit 4d309de

Please sign in to comment.