This PR addresses an issue where the directory structure of the util/ and util/cuda/ headers in NanoVDB is not preserved when installed through CMake. The current installation process flattens the directory structure, leading to incorrect include paths when NanoVDB is used from the installed directories.
Changes
Modified the CMakeLists.txt to use install(DIRECTORY ...) instead of install(FILES ...) for the util/ directory. This change ensures that the directory hierarchy (specifically the util/cuda/ subdirectory) is maintained during installation.
This PR addresses an issue where the directory structure of the util/ and util/cuda/ headers in NanoVDB is not preserved when installed through CMake. The current installation process flattens the directory structure, leading to incorrect include paths when NanoVDB is used from the installed directories.
For example, https://github.com/AcademySoftwareFoundation/openvdb/blob/master/nanovdb/nanovdb/util/GridHandle.h uses cuda utils like this, but there is no 'cuda' directory in installed path.
Changes Modified the CMakeLists.txt to use install(DIRECTORY ...) instead of install(FILES ...) for the util/ directory. This change ensures that the directory hierarchy (specifically the util/cuda/ subdirectory) is maintained during installation.