-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
21 lines (18 loc) · 929 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
21 lines (18 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 3.16)
# Override vterm dimensions to match 800x480 display (100x30 chars @ 8x16 font)
# Must be set before project() to affect all components including breezybox
add_compile_definitions(VTERM_COLS=100 VTERM_ROWS=30)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(breezybox_example)
# Copy our custom symbol table into the elf_loader managed component.
# Runs every build; copy_if_different avoids needless recompilation.
add_custom_target(copy_all_symbols ALL
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${PROJECT_DIR}/main/all_my_symbols.c
${PROJECT_DIR}/managed_components/espressif__elf_loader/src/esp_all_symbol.c
COMMENT "Copying all_my_symbols.c -> esp_all_symbol.c"
)
# Ensure the copy finishes before the elf_loader component compiles.
if(TARGET __idf_espressif__elf_loader)
add_dependencies(__idf_espressif__elf_loader copy_all_symbols)
endif()