Skip to content

Commit

Permalink
Copy all MMU*.hex firmware files
Browse files Browse the repository at this point in the history
  • Loading branch information
3d-gussner committed Oct 19, 2023
1 parent d3c33ad commit fcc9bb5
Show file tree
Hide file tree
Showing 2 changed files with 1,784 additions and 2 deletions.
13 changes: 11 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,19 @@ endif()

target_link_libraries(MK404 gsl-lite)

file(GLOB_RECURSE ALL_MMU_FILES
"${PROJECT_SOURCE_DIR}/assets/Firmware/MM*.hex"
)

add_custom_command(TARGET MK404 POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory "${PROJECT_BINARY_DIR}"
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${PROJECT_SOURCE_DIR}/assets/Firmware/MM-control-01.hex"
"${PROJECT_BINARY_DIR}/MM-control-01.hex")
#"${PROJECT_SOURCE_DIR}/assets/Firmware/MM-control-01.hex"
#"${PROJECT_BINARY_DIR}/MM-control-01.hex"
${ALL_MMU_FILES}
"${PROJECT_BINARY_DIR}/"
)

add_custom_command(TARGET MK404 POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${PROJECT_SOURCE_DIR}/assets/Firmware/MK3S.afx"
Expand Down
Loading

0 comments on commit fcc9bb5

Please sign in to comment.