Commit 3b065ecf authored by jcfr's avatar jcfr
Browse files

COMP: SlicerQT - When configured, Designer.py scripts is now executable.

Doing so allows to execute directly the script.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@11698 3bd1e089-480b-0410-8dfb-8563597acbee
parent bcd35ff9
...@@ -23,9 +23,12 @@ IF(CMAKE_CONFIGURATION_TYPES) ...@@ -23,9 +23,12 @@ IF(CMAKE_CONFIGURATION_TYPES)
SET(designer_launcher "${designer_launcher_directory}/Designer-${config}.py") SET(designer_launcher "${designer_launcher_directory}/Designer-${config}.py")
CONFIGURE_FILE( CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Designer.py.in ${CMAKE_CURRENT_SOURCE_DIR}/Designer.py.in
${designer_launcher} ${CMAKE_CURRENT_BINARY_DIR}/Designer.py
IMMEDIATE IMMEDIATE
) )
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/Designer.py
DESTINATION ${designer_launcher_directory}
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ WORLD_READ)
MESSAGE(STATUS "Configuring Designer launcher: "${designer_launcher}) MESSAGE(STATUS "Configuring Designer launcher: "${designer_launcher})
ENDFOREACH(config) ENDFOREACH(config)
...@@ -35,9 +38,12 @@ ELSE(CMAKE_CONFIGURATION_TYPES) ...@@ -35,9 +38,12 @@ ELSE(CMAKE_CONFIGURATION_TYPES)
SET(designer_launcher "${designer_launcher_directory}/Designer.py") SET(designer_launcher "${designer_launcher_directory}/Designer.py")
CONFIGURE_FILE( CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Designer.py.in ${CMAKE_CURRENT_SOURCE_DIR}/Designer.py.in
${designer_launcher} ${CMAKE_CURRENT_BINARY_DIR}/Designer.py
IMMEDIATE IMMEDIATE
) )
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/Designer.py
DESTINATION ${designer_launcher_directory}
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ WORLD_READ )
MESSAGE(STATUS "Configuring Designer launcher: "${designer_launcher}) MESSAGE(STATUS "Configuring Designer launcher: "${designer_launcher})
ENDIF(CMAKE_CONFIGURATION_TYPES) ENDIF(CMAKE_CONFIGURATION_TYPES)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment