Clean up superfluous directories draco/src in include

The way header files are glob resulted in two additional directories
being nested in include.
This commit is contained in:
Nicholas Yue 2017-08-05 14:19:37 -07:00
parent da71b48359
commit ad7b8c67cd

View File

@ -816,10 +816,10 @@ else ()
# Collect all of the header files in the tree, and add an install rule for
# each.
file(GLOB_RECURSE draco_headers RELATIVE ${draco_root} "*.h")
file(GLOB_RECURSE draco_headers RELATIVE ${draco_root}/src/draco "*.h")
foreach (filename ${draco_headers})
get_filename_component(file_directory ${filename} DIRECTORY)
install(FILES ${filename} DESTINATION
install(FILES ./src/draco/${filename} DESTINATION
"${CMAKE_INSTALL_PREFIX}/include/draco/${file_directory}")
endforeach()