InfiniTime.git

commit 2ee2b8523affe827d2ec1921f8a1793a473f6444

Author: Jean-François Milants <jf@codingfield.com>

User applications selection using CMake

Fix typos in Apps.md and add new line in src/displayapp/apps/CMakeLists.txt

 doc/code/Apps.md | 5 ++++-
 src/displayapp/apps/CMakeLists.txt | 2 +-


diff --git a/doc/code/Apps.md b/doc/code/Apps.md
index 3be47ad76a12568f6e5e75e311935dc88a895b7b..6ca844815b83ad0b8a3dff2eead59d1827afde64 100644
--- a/doc/code/Apps.md
+++ b/doc/code/Apps.md
@@ -159,7 +159,10 @@ If your application is a **user** application, you don't need to add anything in DisplayApp,
 everything will be automatically generated for you.
 The user application will also be automatically be added to the app launcher menu.
 
-Since the list of **user** application is generated by CMake, you need to add the variable `ENABLE_USERAPPS` to the command line of CMake. This variable must be set with a string composed of an ordered list of the **user** applications that must be built into the firmware. The items of the list are fields from the enumeration `Apps`. Ex : build the firmware with 3 user application : Alarm, Timer and MyApp (the application will be listed in this specific order in the application menu).
+Since the list of **user** application is generated by CMake, you need to add the variable `ENABLE_USERAPPS` to the command line of CMake.
+This variable must be set with a string composed of an ordered list of the **user** applications that must be built into the firmware.
+The items of the list are fields from the enumeration `Apps`.
+Ex : build the firmware with 3 user application : Alarm, Timer and MyApp (the application will be listed in this specific order in the application menu).
 
 ```cmake
 $ cmake ... -DENABLE_USERAPPS="Apps::Alarm, Apps::Timer, Apps::MyApp" ... 




diff --git a/src/displayapp/apps/CMakeLists.txt b/src/displayapp/apps/CMakeLists.txt
index fd9f94efa07b7bd36d034d4284de582ae486c4a8..ddf95171fb8e62353ce6abce365c3a3ee9c15c14 100644
--- a/src/displayapp/apps/CMakeLists.txt
+++ b/src/displayapp/apps/CMakeLists.txt
@@ -9,4 +9,4 @@ 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
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Apps.h.in ${CMAKE_CURRENT_BINARY_DIR}/Apps.h)