summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/USER_FILELIST/test.cmake
blob: acfee4202e0b409d5eeff27a2352a938bbf6833c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
install(FILES CMakeLists.txt DESTINATION one     RENAME foo.txt)
install(FILES CMakeLists.txt DESTINATION one/two RENAME bar.txt)
install(FILES CMakeLists.txt DESTINATION three   RENAME baz.txt)
install(FILES CMakeLists.txt DESTINATION three   RENAME qux.txt)

# We are verifying the USER_FILELIST works by comparing what
# ends up with a %doc tag in the final rpm with what we expect
# from this USER_FILELIST.
set(CPACK_RPM_USER_FILELIST
  "%doc /usr/one/foo.txt"
  "%doc %attr(640,root,root) /usr/one/two/bar.txt"
  "%attr(600, -, root) %doc /usr/three/baz.txt"
)