meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:cmake [2024/05/22 12:00] – ↷ Page moved from makefile:cmake to programming:cmake niziakprogramming:cmake [2025/04/16 12:48] (current) niziak
Line 4: Line 4:
 [[http://www.vtk.org/Wiki/CMake_Cross_Compiling#Setting_up_the_system_and_toolchain]] [[http://www.vtk.org/Wiki/CMake_Cross_Compiling#Setting_up_the_system_and_toolchain]]
  
 +==== add assembly listing ====
 +
 +<code bash>
 +add_custom_command(OUTPUT ${CMAKE_PROJECT_NAME}.lst
 +    MAIN_DEPENDENCY $<TARGET_FILE:${CMAKE_PROJECT_NAME}.elf>
 +    COMMAND ${CMAKE_OBJDUMP} -h -S $<TARGET_FILE:${CMAKE_PROJECT_NAME}.elf> > ${CMAKE_PROJECT_NAME}.lst
 +    COMMENT "Invoking: Cross AVR GNU Create Listing")
 +</code>
 +    
 ==== verbose build ==== ==== verbose build ====