CMake: reformat
parent
d7874d5336
commit
e990b703e3
|
|
@ -166,12 +166,16 @@ if(CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
# produce ASM listing
|
# produce ASM listing
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET firmware POST_BUILD COMMAND ${CMAKE_OBJDUMP} -CSd firmware > firmware.asm
|
TARGET firmware
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_OBJDUMP} -CSd firmware > firmware.asm
|
||||||
)
|
)
|
||||||
|
|
||||||
# inform about the firmware's size in terminal
|
# inform about the firmware's size in terminal
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET firmware POST_BUILD COMMAND ${CMAKE_SIZE_UTIL} -C --mcu=atmega32u4 firmware
|
TARGET firmware
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_SIZE_UTIL} -C --mcu=atmega32u4 firmware
|
||||||
)
|
)
|
||||||
report_size(firmware)
|
report_size(firmware)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue