CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES
Change the way the CodeBlocks generator creates project files.
If this variable evaluates to ON
the generator excludes from the project file any files that are located outside the project root.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.15/variable/CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES.html