get_filename_component(location ${file} PATH)
string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" location "${location}")
install(FILES ${file}
DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${location})
get_filename_component(location ${file} PATH)
string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" location "${location}")
install(FILES ${file}
DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${location})