I\'m using the add_subdirectory command in CMake to add sub directories to my parent CMakeLists.txt:
add_subdirectory
CMake
CMakeLists.txt
add_subdirectory(src)