Commit a33e8e29 authored by jcfr's avatar jcfr

ENH: Include SlicerCPack in Utilities/LastConfigureStep/CMakeLists.txt

The packaging step should be done last and the subdirectory LastConfigureStep
is the appropriate place.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@16832 3bd1e089-480b-0410-8dfb-8563597acbee
parent d75267a7
......@@ -698,13 +698,9 @@ IF(NOT Slicer_INSTALL_NO_DEVELOPMENT)
)
ENDIF()
#-----------------------------------------------------------------------------
# Package slicer
#-----------------------------------------------------------------------------
INCLUDE(SlicerCPack.cmake)
#-----------------------------------------------------------------------------
# The commands in this directory are intended to be executed as
# the end of the whole configuration process, as a "last step".
# This directory is typically the last add_subdirectory in the main CMakeLists.txt.
ADD_SUBDIRECTORY(Utilities/LastConfigureStep)
......@@ -16,10 +16,10 @@ else()
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"
"${Slicer_SOURCE_DIR}/SlicerCompleteBundles.cmake.in"
"${Slicer_BINARY_DIR}/SlicerCompleteBundles.cmake"
@ONLY)
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/SlicerCompleteBundles.cmake")
install(SCRIPT "${Slicer_BINARY_DIR}/SlicerCompleteBundles.cmake")
endif()
# -------------------------------------------------------------------------
......
......@@ -42,3 +42,5 @@ EXPORT(TARGETS ${Slicer_TARGETS} APPEND FILE ${Slicer_BINARY_DIR}/SlicerTargets.
# Since it might generate configuration file depending
INCLUDE(${Slicer_SOURCE_DIR}/SlicerGenerateSlicerConfig.cmake)
#-----------------------------------------------------------------------------
INCLUDE(${Slicer_SOURCE_DIR}/SlicerCPack.cmake)
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