blob: 74d804351e35cf6a1b6615a3f7d8bbf7e5829aa4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
install(
DIRECTORY pattern/
DESTINATION dir1
FILES_MATCHING
PATTERN "*.h"
REGEX "\\.c$"
)
# FIXME: If/when CMake gains a good way to read file permissions, we should
# check that these permissions were set correctly.
install(
DIRECTORY pattern
DESTINATION dir2
FILE_PERMISSIONS OWNER_READ OWNER_WRITE
DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
PATTERN "*.h" EXCLUDE
REGEX "\\.c$" EXCLUDE
)
install(
DIRECTORY pattern/
DESTINATION dir3
PATTERN "*.h"
PERMISSIONS OWNER_READ OWNER_WRITE
)
install(
DIRECTORY pattern/
DESTINATION dir4
USE_SOURCE_PERMISSIONS
)
install(
DIRECTORY
DESTINATION empty
)
|