summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-06-05 12:11:20 -0400
committerScott Murray <scott.murray@konsulko.com>2020-06-05 12:28:26 -0400
commit811548a29224705c5c228ae9d66bb5b8e61b1d23 (patch)
tree61a15326a2448b96cdd0b656bb45efac4025e56a
parent7f165731ef87ae7b64d59fb963dbe506e24a2279 (diff)
Fix generated install target
Fix the generated install target to use the permissions of the source files to keep the executable permission on libraries and executables, and to add installation of the test widget, which was missing. Bug-AGL: SPEC-3381 Change-Id: Ia32cf6472e4576042721ab933531eec8eb7ff316 Signed-off-by: Clément Bénier <clement.benier@iot.bzh> Signed-off-by: Scott Murray <scott.murray@konsulko.com>
-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()