CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY
From Get docs
Cmake/docs/3.21/variable/cpack component include toplevel directory
CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY
Boolean toggle to include/exclude top level directory (component case).
Similar usage as CPACK_INCLUDE_TOPLEVEL_DIRECTORY but for the component case. See CPACK_INCLUDE_TOPLEVEL_DIRECTORY documentation for the detail.
© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY.html