From b1fbae36f911e22586f013784d26c47115432e6f Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Sun, 15 May 2022 22:13:24 +0300 Subject: [PATCH] Build widgets in widgets folder (#31) https://github.com/InfiniTimeOrg/InfiniTime/pull/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 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1040b9..1e2b555 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,9 +169,14 @@ file(GLOB InfiniTime_FONTS file(GLOB InfiniTime_ICONS "${InfiniTime_DIR}/src/displayapp/icons/*.c" ) +file(GLOB InfiniTime_WIDGETS + "${InfiniTime_DIR}/src/displayapp/widgets/*.cpp" + "${InfiniTime_DIR}/src/displayapp/widgets/*.h" +) target_sources(infinisim PUBLIC ${InfiniTime_SCREENS}) target_sources(infinisim PUBLIC ${InfiniTime_FONTS}) target_sources(infinisim PUBLIC ${InfiniTime_ICONS}) +target_sources(infinisim PUBLIC ${InfiniTime_WIDGETS}) # add files directly from InfiniTime sources target_include_directories(infinisim PRIVATE "${InfiniTime_DIR}/src")