diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1026016..83108e3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -49,7 +49,14 @@ target_link_options(${PROJECT_NAME} PUBLIC set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".elf") +# Convert output to hex and binary +add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_OBJCOPY} -O ihex $ ${CMAKE_PROJECT_NAME}.hex +) + + #add_subdirectory(attic) add_subdirectory(ADC) add_subdirectory(RegEdit) +add_subdirectory(blink)