rp2040/example/boot2/CMakeLists.txt

16 lines
410 B
CMake
Raw Normal View History

2025-04-13 17:29:34 +08:00
cmake_minimum_required(VERSION 3.10)
include(proj.conf)
project(${EXAMPLE_NAME} VERSION 0.1)
add_executable(${EXAMPLE_NAME}.elf main.c)
enable_language(ASM)
target_sources(${EXAMPLE_NAME}.elf PUBLIC boot2_pre.S)
add_subdirectory(${SDK_BASE_DIR} sdk)
target_link_libraries(${EXAMPLE_NAME}.elf sdk)
2025-04-20 22:03:15 +08:00
add_subdirectory(${EXAMPLE_BASE_DIR}/src src)
target_link_libraries(${EXAMPLE_NAME}.elf src)