summaryrefslogtreecommitdiffstats
path: root/docs/dev_guide/1_Quickstart.md
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-11-09 11:49:04 +0100
committerJose Bollo <jose.bollo@iot.bzh>2018-11-12 09:06:36 +0100
commit8e59ed27a6148308fa5ff7ceabd05e9b07d3f68d (patch)
treee631a76956faeffb1c3b0854a9a69fb604d02dc4 /docs/dev_guide/1_Quickstart.md
parent87b8529f275b1884b6fc655f166719536ddfe973 (diff)
Explain why add_subdirectory raise error
Change-Id: Id304c589ebe4f1e944377047ca3d462dce80dd7d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'docs/dev_guide/1_Quickstart.md')
-rw-r--r--docs/dev_guide/1_Quickstart.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/dev_guide/1_Quickstart.md b/docs/dev_guide/1_Quickstart.md
index 4be565e..c9f3897 100644
--- a/docs/dev_guide/1_Quickstart.md
+++ b/docs/dev_guide/1_Quickstart.md
@@ -26,6 +26,17 @@ cp /usr/share/cmake/Modules/CMakeAfbTemplates/samples.d/CMakeLists.txt.sample CM
cp /usr/share/cmake-X.Y/Modules/CMakeAfbTemplates/samples.d/CMakeLists.txt.sample CMakeLists.txt
```
+## Auto-detection of CMakeLists.txt and *.cmake files
+
+The directories matching the pattern ***PROJECT_SRC_DIR_PATTERN*** (defaults to "*")
+will be automatically scanned.
+
+When a files ***CMakeLists.txt*** is found, its directory is automatically added to
+the cmake project.
+
+Similarily, when a file named with the extension ***.cmake*** is found, it is automatically
+added to the cmake project.
+
## Create your CMake targets
For each target that is part of your project, you need to use