summaryrefslogtreecommitdiffstats
path: root/src/cmake/cmake.d/03-macros.cmake
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2020-05-15 11:07:23 +0200
committerClément Bénier <clement.benier@iot.bzh>2020-05-15 11:14:25 +0200
commitcab6a70b1f394099966ac60007830219ee631b9a (patch)
tree61a15326a2448b96cdd0b656bb45efac4025e56a /src/cmake/cmake.d/03-macros.cmake
parent9e3724bca1587ad7063e91683e787bb250cd90a6 (diff)
project_targets_populate: source_permissions, test
- install package test - use source permissions (exec flags kept) Change-Id: Ie66e4f84e30c7917b06a32ed6afc966ad8be2a75 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'src/cmake/cmake.d/03-macros.cmake')
-rw-r--r--src/cmake/cmake.d/03-macros.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmake/cmake.d/03-macros.cmake b/src/cmake/cmake.d/03-macros.cmake
index 389eead..0b4b276 100644
--- a/src/cmake/cmake.d/03-macros.cmake
+++ b/src/cmake/cmake.d/03-macros.cmake
@@ -369,10 +369,20 @@ macro(project_targets_populate)
if(NO_DEDICATED_INSTALL_DIR)
INSTALL(DIRECTORY ${PROJECT_PKG_BUILD_DIR}/
DESTINATION ${CMAKE_INSTALL_PREFIX}
+ USE_SOURCE_PERMISSIONS
+ )
+ INSTALL(DIRECTORY ${PROJECT_PKG_TEST_DIR}/
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/test
+ USE_SOURCE_PERMISSIONS
)
else()
INSTALL(DIRECTORY ${PROJECT_PKG_BUILD_DIR}/
DESTINATION ${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}
+ USE_SOURCE_PERMISSIONS
+ )
+ INSTALL(DIRECTORY ${PROJECT_PKG_TEST_DIR}/
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}-test
+ USE_SOURCE_PERMISSIONS
)
endif()