Skip to content

Commit 1a89fbe

Browse files
committed
[cmake] Update auto-generated CMakeLists
1 parent a5cee07 commit 1a89fbe

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tools/build_script_generator/cmake/resources/ci_CMakeLists.txt.in

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
4747

4848
add_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.
5456
file(GLOB APP_SOURCE_FILES *.c *.cpp */*.c */*.cpp)
@@ -57,9 +59,11 @@ add_executable(${CMAKE_PROJECT_NAME} ${APP_SOURCE_FILES})
5759
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC include)
5860

5961
target_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.
6569
modm_targets_create(${CMAKE_PROJECT_NAME})

0 commit comments

Comments
 (0)