split config now

This commit is contained in:
Priec
2025-11-14 10:13:59 +01:00
parent 1f5bc11ddd
commit 3e0018d1cb
9 changed files with 155 additions and 119 deletions

View File

@@ -15,9 +15,18 @@ add_subdirectory(${MBED_PATH})
add_executable(${APP_TARGET})
# Recursively collect all .cpp files under src/
file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS "src/*.cpp")
target_sources(${APP_TARGET}
PRIVATE
main.cpp
${SRC_FILES}
)
# Make includes of headers work
target_include_directories(${APP_TARGET}
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
target_link_libraries(${APP_TARGET}