From bdcd504dd83cb2f893845b165888d46b2165f942 Mon Sep 17 00:00:00 2001 From: jmkerloch Date: Thu, 17 Dec 2020 09:22:57 +0100 Subject: [PATCH] install python script or executable with execute permissions --- src/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3a597a39c..b3868ba48 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,10 +27,14 @@ if (PYINSTALLER) #code is executed in CMAKE_BINARY_DIR install(DIRECTORY ${CMAKE_BINARY_DIR}/dist/ - DESTINATION xpansion-launcher) + DESTINATION xpansion-launcher + USE_SOURCE_PERMISSIONS) else () message(STATUS "PyInstaller was not found : python scripts are use for install target") - install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src_python/" DESTINATION xpansion-launcher) + + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src_python/" + DESTINATION xpansion-launcher + USE_SOURCE_PERMISSIONS) endif()