From f5d56c69ab9c23e67711d4e7fafd05304653145d Mon Sep 17 00:00:00 2001 From: Reinhold Gschweicher Date: Sat, 21 Sep 2024 20:06:05 +0200 Subject: [PATCH] Support WakeLock.h for doNotGoToSleep Refactor For InfiniTime PR https://github.com/InfiniTimeOrg/InfiniTime/pull/2107 a new systemtask file is introduced `WakeLock.h` and `WakeLock.cpp`. If available add those files to the build target to support the current `main` and the new `WakeLock` using redesign. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c41bdcf..b6c03b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,6 +237,13 @@ else() ) endif() +if(EXISTS ${InfiniTime_DIR}/src/systemtask/WakeLock.h) + target_sources(infinisim PUBLIC + ${InfiniTime_DIR}/src/systemtask/WakeLock.h + ${InfiniTime_DIR}/src/systemtask/WakeLock.cpp + ) +endif() + # littlefs add_library(littlefs STATIC ${InfiniTime_DIR}/src/libs/littlefs/lfs_util.h