add test_fw
This commit is contained in:
13
test_fw/CMakeLists.txt
Normal file
13
test_fw/CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(test_fw C)
|
||||
set(TARGET test_fw)
|
||||
add_executable(${TARGET} test_fw.c)
|
||||
|
||||
set(BOARD "iss" CACHE STRING "Target board")
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../bare-metal-bsp bsp)
|
||||
target_link_libraries(${TARGET} PRIVATE bsp)
|
||||
target_link_options(${TARGET} PRIVATE LINKER:-Map=${TARGET}.map)
|
||||
|
||||
add_custom_command(TARGET ${TARGET} POST_BUILD
|
||||
COMMAND ${CMAKE_OBJDUMP} -S ${TARGET}.elf > ${TARGET}.dis
|
||||
COMMENT "Creating disassembly for ${TARGET}")
|
||||
Reference in New Issue
Block a user