From bbc0cf59300e9cf4e13b8ccaf8017c8ec6055b80 Mon Sep 17 00:00:00 2001 From: Julian Foad Date: Fri, 10 May 2024 14:15:19 +0100 Subject: [PATCH] allow passing OWNER_TEXT variables into cmake --- src/displayapp/apps/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/displayapp/apps/CMakeLists.txt b/src/displayapp/apps/CMakeLists.txt index f1b7e884..60c5c0a5 100644 --- a/src/displayapp/apps/CMakeLists.txt +++ b/src/displayapp/apps/CMakeLists.txt @@ -31,9 +31,17 @@ else() endif() # Owner text displayed on watch faces, <=20ch -set(OWNER_TEXT "Pine Time") +if(DEFINED OWNER_TEXT) + set(OWNER_TEXT ${OWNER_TEXT}) +else() + set(OWNER_TEXT "Pine Time") +endif() # Owner text displayed on watch faces, <=6ch -set(OWNER_TEXT_SHORT "pine") +if(DEFINED OWNER_TEXT_SHORT) + set(OWNER_TEXT_SHORT ${OWNER_TEXT_SHORT}) +else() + set(OWNER_TEXT_SHORT "pine") +endif() add_library(infinitime_apps INTERFACE) target_sources(infinitime_apps INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/Apps.h")