2 title: Project Architecture
5 The following tree structure represents a typical CMake project
23 │ │ │ └── package.spec
26 │ │ ├── debian.package.install
27 │ │ ├── debian.changelog
29 │ │ ├── debian.control
32 │ │ ├── 00-debian-osconfig.cmake
33 │ │ ├── 00-suse-osconfig.cmake
34 │ │ ├── 01-default-osconfig.cmake
47 | File or Directory | Parent | Description |
49 | *root_path* | n/a | CMake project root path. Holds the master CMakeLists.txt file and all general project files.
50 | CMakeLists.txt | The master CMakeLists.txt file.
51 | autobuild/ | *root_path* | Scripts generated from app-templates to build packages the same way for differents platforms.
52 | conf.d/ | *root_path* | Holds needed files to build, install, debug, and package an AGL application project.
53 | packaging/ | conf.d/ | Contains output files used to build packages.
54 | cmake/ | conf.d/ | Minimally contains the config.cmake file, which is modified from the sample provided in the app-templates submodule.
55 | wgt/ | conf.d/ | Contains config.xml.in and optionaly the test-config.xml.in template files that are modified from the sample provided with the CMake module for the needs of the project. For more details, see the config.xml.in.sample and test-config.xml.in.sample files.
56 | *target* | *root_path* | A target to build, which is typically a library or executable.
58 When building projects using CMake, the build process automatically detects
59 the `CMakeLists.txt` and `*.cmake` files.
60 To help with this process, the `PROJECT_SRC_DIR_PATTERN` variable
61 is used for recursive pattern searching from the CMake project's
63 Each sub-folder below *root_path* in the project is searched and included
65 The directories matching the pattern `PROJECT_SRC_DIR_PATTERN` variable
68 **NOTE:** The `PROJECT_SRC_DIR_PATTERN` variable defaults to "*".
70 When the `CMakeLists.txt` file is found, the directory in which it is found
71 is automatically added to the CMake project.
73 Similarly, when a file whose extension is `.cmake` is found, the directory in
74 which that file resides is also added to the CMake project.