summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()