File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11# set the sources
2- set (SOURCES
2+ set (SOURCES
33 ${CMAKE_CURRENT_SOURCE_DIR} /main.cpp
44
55 # example for including the startup.cpp
@@ -44,9 +44,9 @@ target_link_options(klib_project PUBLIC "-T${TARGET_LINKERSCRIPT}")
4444set_target_properties (klib_project PROPERTIES LINK_DEPENDS ${TARGET_LINKERSCRIPT} )
4545
4646# add the project directory to the include directories
47- include_directories (${CMAKE_CURRENT_SOURCE_DIR} )
47+ include_directories (${CMAKE_CURRENT_SOURCE_DIR} )
4848
49- # Custom commands for processing the build binary and show some statistics and debug info
49+ # Custom commands for processing the build binary and show some statistics and debug info
5050add_custom_command (TARGET klib_project DEPENDS ${CMAKE_BINARY_DIR} /klib.elf POST_BUILD COMMAND arm-none-eabi-objcopy ARGS -O binary -R .bss -R .stack klib.elf klib.bin)
5151add_custom_command (TARGET klib_project DEPENDS ${CMAKE_BINARY_DIR} /klib.elf POST_BUILD COMMAND arm-none-eabi-objcopy ARGS -O ihex -R .bss -R .stack klib.elf klib.hex)
5252add_custom_command (TARGET klib_project DEPENDS ${CMAKE_BINARY_DIR} /klib.elf POST_BUILD COMMAND arm-none-eabi-objdump ARGS -C -S klib.elf > klib.lss)
You can’t perform that action at this time.
0 commit comments