File: Tagua.cmake

package info (click to toggle)
tagua 1.0~alpha2-15
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 8,028 kB
  • ctags: 7,178
  • sloc: cpp: 26,149; ansic: 13,039; makefile: 182; ruby: 87; sh: 39
file content (13 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
macro(install_local_dir local_dir install_dir)
  file(GLOB_RECURSE inst_files ${local_dir}/*)
  foreach(inst_file ${inst_files})
#     message("file1 = ${CMAKE_CURRENT_SOURCE_DIR}")
#     message("file2 = ${inst_file}")
    file(RELATIVE_PATH rel_file ${CMAKE_CURRENT_SOURCE_DIR} ${inst_file})
#     message("rel file = ${rel_file}")
    get_filename_component(rel_dir ${rel_file} PATH)
#     message("rel dir = ${rel_dir}")
    install(FILES ${inst_file}
      DESTINATION ${DATA_INSTALL_DIR}/${install_dir}/${rel_dir})
  endforeach(inst_file)
endmacro(install_local_dir local_dir install_dir)