summaryrefslogtreecommitdiffstats
path: root/cmake/cpack_tgz.cmake
blob: 7dd9f397189cc8ea03449a61e87a597740f25b0b (plain)
1
2
3
4
5
6
7
8
9
10
IF(NOT RPM AND NOT DEB)
  #
  # use -DEXTRA_FILES='/path/to/file=where/to/install;/bin/dd=bin;...'
  #
  FOREACH(f ${EXTRA_FILES})
    STRING(REGEX REPLACE "=.*$" "" from ${f})
    STRING(REGEX REPLACE "^.*=" "" to   ${f})
    INSTALL(PROGRAMS ${from} DESTINATION ${to})
  ENDFOREACH()
ENDIF()