You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
665 B
37 lines
665 B
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
|
|
)
|