CMake User Applications selection

Use CMake's configure_file() functionality to generate the list of User Applications.

All the apps included in current versions of InfiniTime are enabled by default, but this can now be overridden by setting variables ENABLE_APP_XXX to True or False.

CMake CMP0140 is set to NEW to enable the return PROPAGATE functionality.
This commit is contained in:
Jean-François Milants
2023-12-17 16:34:00 +01:00
committed by JF
parent ca7d8a668d
commit 2bc9318451
3 changed files with 40 additions and 2 deletions

View File

@@ -63,6 +63,8 @@ namespace Pinetime {
static constexpr size_t Count = sizeof...(As);
};
using UserAppTypes = TypeList<@USERAPP_TYPES@>;
template <WatchFace... Ws>
struct WatchFaceTypeList {
static constexpr size_t Count = sizeof...(Ws);

View File

@@ -1,5 +1,5 @@
#pragma once
#include "Apps.h"
#include "displayapp/Apps.h"
#include "Controllers.h"
#include "displayapp/screens/Alarm.h"