1
0
Fork 0

allow passing OWNER_TEXT variables into cmake

This commit is contained in:
Julian Foad 2024-05-10 14:15:19 +01:00
parent 88877074e8
commit bbc0cf5930

View file

@ -31,9 +31,17 @@ else()
endif()
# Owner text displayed on watch faces, <=20ch
if(DEFINED OWNER_TEXT)
set(OWNER_TEXT ${OWNER_TEXT})
else()
set(OWNER_TEXT "Pine Time")
endif()
# Owner text displayed on watch faces, <=6ch
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")