From 8e59ed27a6148308fa5ff7ceabd05e9b07d3f68d Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 9 Nov 2018 11:49:04 +0100 Subject: Explain why add_subdirectory raise error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id304c589ebe4f1e944377047ca3d462dce80dd7d Signed-off-by: José Bollo --- docs/dev_guide/1_Quickstart.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') 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 -- cgit