mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/cmake: add some note on cmake header
| # Important note: | # This CMakeLists.txt is not meant as a top-level CMakeLists.txt. Instead, | # CMake must be run using the top-level CMakeLists.txt from the nuttx | # repository and point to this directory via NUTTX_APPS_DIR. For example: | # cmake -S <nuttx-dir> -B <build-dir> [...] -DNUTTX_APPS_DIR=<apps-dir> Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
dab972b907
commit
391b643855
1 changed files with 8 additions and 0 deletions
|
|
@ -18,6 +18,14 @@
|
|||
#
|
||||
# ##############################################################################
|
||||
|
||||
# ~~~
|
||||
# Important note:
|
||||
# This CMakeLists.txt is not meant as a top-level CMakeLists.txt. Instead,
|
||||
# CMake must be run using the top-level CMakeLists.txt from the nuttx
|
||||
# repository and point to this directory via NUTTX_APPS_DIR. For example:
|
||||
# cmake -S <nuttx-dir> -B <build-dir> [...] -DNUTTX_APPS_DIR=<apps-dir>
|
||||
# ~~~
|
||||
|
||||
if(CONFIG_APPS_DIR)
|
||||
nuttx_add_library(apps)
|
||||
if(NOT EXISTS {NUTTX_APPS_BINDIR}/dummy.c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue