File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
tools/build_script_generator/cmake/resources Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,10 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
4747
4848add_library(project_options INTERFACE)
4949
50- # Compile modm
51- add_subdirectory(modm)
50+ # Compile libraries
51+ %% for repo in generated_paths | sort
52+ add_subdirectory({{ repo }})
53+ %% endfor
5254
5355# Find application sources: Never do this, file changes are not detected by make.
5456file(GLOB APP_SOURCE_FILES *.c *.cpp */*.c */*.cpp)
@@ -57,9 +59,11 @@ add_executable(${CMAKE_PROJECT_NAME} ${APP_SOURCE_FILES})
5759target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC include)
5860
5961target_link_libraries(${CMAKE_PROJECT_NAME}
62+ %% for repo in generated_paths | sort
63+ {{ repo }}
64+ %% endfor
6065 modm_options
61- modm_warnings
62- modm)
66+ modm_warnings)
6367
6468# Outputs hex and bin files.
6569modm_targets_create(${CMAKE_PROJECT_NAME})
You can’t perform that action at this time.
0 commit comments