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)
47
47
48
48
add_library(project_options INTERFACE)
49
49
50
- # Compile modm
51
- add_subdirectory(modm)
50
+ # Compile libraries
51
+ %% for repo in generated_paths | sort
52
+ add_subdirectory({{ repo }})
53
+ %% endfor
52
54
53
55
# Find application sources: Never do this, file changes are not detected by make.
54
56
file(GLOB APP_SOURCE_FILES *.c *.cpp */*.c */*.cpp)
@@ -57,9 +59,11 @@ add_executable(${CMAKE_PROJECT_NAME} ${APP_SOURCE_FILES})
57
59
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC include)
58
60
59
61
target_link_libraries(${CMAKE_PROJECT_NAME}
62
+ %% for repo in generated_paths | sort
63
+ {{ repo }}
64
+ %% endfor
60
65
modm_options
61
- modm_warnings
62
- modm)
66
+ modm_warnings)
63
67
64
68
# Outputs hex and bin files.
65
69
modm_targets_create(${CMAKE_PROJECT_NAME})
You can’t perform that action at this time.
0 commit comments