Skip to content

Commit

Permalink
build: build generated app sources for flashgen target
Browse files Browse the repository at this point in the history
  • Loading branch information
paradajz committed Oct 14, 2023
1 parent ebc624b commit 4f18dc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tools/flashgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,17 @@ target_include_directories(flashgen
${PROJECT_ROOT}/modules/core/include
)

file(GLOB_RECURSE APP_GENERATED_SOURCES
${PROJECT_ROOT}/src/generated/application/${TARGET}/*.cpp
)

target_sources(flashgen
PRIVATE
${CMAKE_CURRENT_LIST_DIR}/main.cpp
${PROJECT_ROOT}/src/firmware/application/database/CustomInit.cpp
${PROJECT_ROOT}/src/firmware/application/database/Database.cpp
${PROJECT_ROOT}/src/firmware/application/util/configurable/Configurable.cpp
${APP_GENERATED_SOURCES}
)

target_link_libraries(flashgen
Expand Down

0 comments on commit 4f18dc0

Please sign in to comment.