How to get a list of all added subdirectories in CMake
<p>In CMake Subdirectories can be added using <code>add_subdirectory()</code>.
How can I get the list of all subdirectories that have been added in CMake?</p>