Skip to content

Commit b1fbae3

Browse files
authored
Build widgets in widgets folder (#31)
InfiniTimeOrg/InfiniTime#1136 adds a new folder `widgets` for source files.If it gets merged, this folder needs to be added to the build. Add the source files to InfiniSim if the new folder exists
1 parent f0c6ef9 commit b1fbae3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,14 @@ file(GLOB InfiniTime_FONTS
169169
file(GLOB InfiniTime_ICONS
170170
"${InfiniTime_DIR}/src/displayapp/icons/*.c"
171171
)
172+
file(GLOB InfiniTime_WIDGETS
173+
"${InfiniTime_DIR}/src/displayapp/widgets/*.cpp"
174+
"${InfiniTime_DIR}/src/displayapp/widgets/*.h"
175+
)
172176
target_sources(infinisim PUBLIC ${InfiniTime_SCREENS})
173177
target_sources(infinisim PUBLIC ${InfiniTime_FONTS})
174178
target_sources(infinisim PUBLIC ${InfiniTime_ICONS})
179+
target_sources(infinisim PUBLIC ${InfiniTime_WIDGETS})
175180

176181
# add files directly from InfiniTime sources
177182
target_include_directories(infinisim PRIVATE "${InfiniTime_DIR}/src")

0 commit comments

Comments
 (0)