[CMake] Refactor subdirectory inclusion code to take a project name.