aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/apps/CMakeLists.txt
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2023-12-19 17:53:48 +0100
committerJF <JF002@users.noreply.github.com>2023-12-23 21:29:13 +0100
commitf0e8bb26e94d4fd7c063c2fe5ead76c165cad5a0 (patch)
tree39c1867399f78f3f3d6e9546546338cc7399f50f /src/displayapp/apps/CMakeLists.txt
parent1ad78400727871a4b8dbfe90ef52c7be998c1518 (diff)
Watch face selection with CMake
Move displayapp/Apps.h into a header only library (to make the integration easier in InfiniSim.
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
new file mode 100644
index 00000000..808496e5
--- /dev/null
+++ b/src/displayapp/apps/CMakeLists.txt
@@ -0,0 +1,6 @@
+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}/")
+
+# Generate the list of user apps to be compiled into the firmware
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Apps.h.in ${CMAKE_CURRENT_BINARY_DIR}/Apps.h) \ No newline at end of file