1subdirs 2------- 3 4.. deprecated:: 3.0 5 6 Use the :command:`add_subdirectory` command instead. 7 8Add a list of subdirectories to the build. 9 10:: 11 12 subdirs(dir1 dir2 ...[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...] 13 [PREORDER] ) 14 15Add a list of subdirectories to the build. The :command:`add_subdirectory` 16command should be used instead of ``subdirs`` although ``subdirs`` will still 17work. This will cause any CMakeLists.txt files in the sub directories 18to be processed by CMake. Any directories after the ``PREORDER`` flag are 19traversed first by makefile builds, the ``PREORDER`` flag has no effect on 20IDE projects. Any directories after the ``EXCLUDE_FROM_ALL`` marker will 21not be included in the top level makefile or project file. This is 22useful for having CMake create makefiles or projects for a set of 23examples in a project. You would want CMake to generate makefiles or 24project files for all the examples at the same time, but you would not 25want them to show up in the top level project or be built each time 26make is run from the top. 27