aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/apps/CMakeLists.txt
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2023-12-24 11:44:37 +0100
committerJF <JF002@users.noreply.github.com>2024-01-06 14:44:10 +0100
commit22f6d4a40b6715b436f5eb3bf8524fa955eccd20 (patch)
tree71f344d3187b6b3d92712ab1d0a3440a1220c9b9 /src/displayapp/apps/CMakeLists.txt
parent12acef6a71602c1f8425202560209355da1ce97b (diff)
Watch face selection using CMake
The list of watch face to build into the firmware is now set by CMake (-DENABLE_WATCHFACES). Fix SettingWatchFace : convert to index to/from WatchFace when needed.
Diffstat (limited to 'src/displayapp/apps/CMakeLists.txt')
-rw-r--r--src/displayapp/apps/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/displayapp/apps/CMakeLists.txt b/src/displayapp/apps/CMakeLists.txt
index 3544443a..4f0e4c49 100644
--- a/src/displayapp/apps/CMakeLists.txt
+++ b/src/displayapp/apps/CMakeLists.txt
@@ -17,6 +17,12 @@ else ()
set(USERAPP_TYPES "${DEFAULT_USER_APP_TYPES}" CACHE STRING "List of user apps to build into the firmware")
endif ()
+if(DEFINED ENABLE_WATCHFACES)
+ set(WATCHFACE_TYPES ${ENABLE_WATCHFACES} CACHE STRING "List of watch faces to build into the firmware")
+else()
+ set(WATCHFACE_TYPES "WatchFace::Digital, WatchFace::Analog, WatchFace::PineTimeStyle, WatchFace::Terminal, WatchFace::Infineat, WatchFace::CasioStyleG7710" CACHE STRING "List of watch faces to build into the firmware")
+endif()
+
add_library(infinitime_apps INTERFACE)
target_sources(infinitime_apps INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/Apps.h")
target_include_directories(infinitime_apps INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/")