Firmwares/hello-world/CMakeLists.txt

13 lines
412 B
CMake
Raw Normal View History

2025-01-06 20:33:30 +01:00
cmake_minimum_required(VERSION 3.21)
2024-12-17 12:34:07 +01:00
project(hello-world C)
2025-01-06 20:33:30 +01:00
set(TARGET hello)
add_executable(${TARGET} hello.c)
2024-12-17 12:34:07 +01:00
2025-01-06 20:33:30 +01:00
set(BOARD "iss" CACHE STRING "Target board")
add_subdirectory(../bare-metal-bsp bsp)
target_link_libraries(${TARGET} PRIVATE bsp)
2024-12-17 12:34:07 +01:00
2025-01-06 20:33:30 +01:00
add_custom_command(TARGET ${TARGET} POST_BUILD
COMMAND ${CMAKE_OBJDUMP} -S ${TARGET}.elf > ${TARGET}.dis
COMMENT "Creating disassembly for ${TARGET}")