1 macro(install_local_dir local_dir install_dir)
2 file(GLOB_RECURSE inst_files ${local_dir}/*)
3 foreach(inst_file ${inst_files})
4 # message("file1 = ${CMAKE_CURRENT_SOURCE_DIR}")
5 # message("file2 = ${inst_file}")
6 file(RELATIVE_PATH rel_file ${CMAKE_CURRENT_SOURCE_DIR} ${inst_file})
7 # message("rel file = ${rel_file}")
8 get_filename_component(rel_dir ${rel_file} PATH)
9 # message("rel dir = ${rel_dir}")
10 install(FILES ${inst_file}
11 DESTINATION ${DATA_INSTALL_DIR}/${install_dir}/${rel_dir})
13 endmacro(install_local_dir local_dir install_dir)