Commit 86a71632 authored by jcfr's avatar jcfr

COMP: Merge Utilities/Package/CMakeLists.txt with SlicerCPack.cmake

* CompleteBundles.cmake{.in} has been renamed into SlicerCompleteBundles.cmake{.in}

git-svn-id: http://svn.slicer.org/Slicer4/trunk@16792 3bd1e089-480b-0410-8dfb-8563597acbee
parent ff300ae7
......@@ -687,17 +687,8 @@ ENDIF()
#-----------------------------------------------------------------------------
# Package slicer
#-----------------------------------------------------------------------------
INCLUDE(SlicerCPack.cmake)
# IMPORTANT:
# Keep this chunk of code here at the very bottom of the main
# CMakeLists.txt file so that the install rules that install the
# bundles and any files inside of them are already run before these
# script steps are run.
ADD_SUBDIRECTORY(Utilities/Package)
#-----------------------------------------------------------------------------
# The commands in this directory are intended to be executed as
# the end of the whole configuration process, as a "last step".
......
# Python install rules are common to both 'bundled' and 'regular' package
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallPython.cmake)
if(NOT APPLE)
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallTcl.cmake)
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallPython.cmake)
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallQt.cmake)
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallPythonQt.cmake)
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallLibArchive.cmake)
include(InstallRequiredSystemLibraries)
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallCMakeProjects.cmake)
endif(NOT APPLE)
else()
# Note: Since CPACK_INSTALL_CMAKE_PROJECTS isn't defined, CPack will default to the current project
# and slicer install rules will be considered.
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallExternalPythonModules.cmake)
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallQtImageFormatsPlugins.cmake)
set(executable_path @executable_path)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/SlicerCompleteBundles.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/SlicerCompleteBundles.cmake"
@ONLY)
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/SlicerCompleteBundles.cmake")
endif()
# -------------------------------------------------------------------------
# Package properties
......
if(APPLE)
get_filename_component(SUPER_BUILD_DIR "${Slicer_BINARY_DIR}" PATH)
set(PYTHON_DIR "${SUPER_BUILD_DIR}/python-build")
if(EXISTS "${PYTHON_DIR}")
install(DIRECTORY
"${PYTHON_DIR}/"
DESTINATION ${Slicer_INSTALL_ROOT}/lib/Python
USE_SOURCE_PERMISSIONS
REGEX "bin/python" EXCLUDE
REGEX "include/" EXCLUDE
REGEX "share/man" EXCLUDE
REGEX "command/wininst" EXCLUDE
)
endif()
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallExternalPythonModules.cmake)
include(${Slicer_CMAKE_DIR}/SlicerBlockInstallQtImageFormatsPlugins.cmake)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(executable_path @executable_path)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/CompleteBundles.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/CompleteBundles.cmake"
@ONLY)
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/CompleteBundles.cmake")
set(CPACK_GENERATOR "DragNDrop")
endif(APPLE)
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