Commit b724ea62 authored by jcfr's avatar jcfr
Browse files

COMP: SlicerQT - For now, launcher 'Slicer3' (based on startkits) is also...

COMP: SlicerQT - For now, launcher 'Slicer3' (based on startkits) is also configured if Slicer3_USE_KWWidgets is OFF.

Required to be able to run SlicerQT on a windows build.
./slicer3 --launch SlicerQT

Some test also expect the launcher 'Slicer3' to be present. (for example VTKITKReader)
On windows, the launcher is mandatory to run the test.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@11916 3bd1e089-480b-0410-8dfb-8563597acbee
parent 97c245d1
......@@ -78,7 +78,7 @@ if(Slicer3_NEED_SHARED_FORWARD)
@ONLY IMMEDIATE)
add_executable(${slicer_exe} WIN32
${CMAKE_CURRENT_BINARY_DIR}/${slicer_exe}-forward.c)
add_dependencies(${slicer_exe} ${slicer_exe}${Slicer3_EXE_SUFFIX})
add_dependencies(${slicer_exe} ${Slicer3_FORWARD_EXE})
install(TARGETS ${slicer_exe}
DESTINATION ${Slicer3_INSTALL_BIN_DIR}
COMPONENT Runtime)
......
......@@ -561,9 +561,10 @@ install(DIRECTORY
# Launcher for slicer
#
IF (Slicer3_USE_KWWIDGETS)
add_subdirectory(Utilities/Launcher)
# let's build the launcher for Kww, KwwAndQt and also QtOnly slicer ...
ADD_SUBDIRECTORY(Utilities/Launcher)
IF (Slicer3_USE_KWWIDGETS)
configure_file(
${Slicer3_SOURCE_DIR}/launch.tcl.in
"${Slicer3_BINARY_DIR}/${Slicer3_INSTALL_LIB_DIR}/launch.tcl"
......
......@@ -35,13 +35,17 @@ endif(${launcher_platform} MATCHES Darwin-powerpc)
string(TOLOWER "${launcher_platform}" launcher_platform)
set(launcher_name "Slicer3-${launcher_platform}${CMAKE_EXECUTABLE_SUFFIX}")
#MESSAGE("launcher_platform is ${launcher_platform}\nlauncher name is ${launcher_name}")
set(launcher_source
"${CMAKE_CURRENT_SOURCE_DIR}/Slicer3Launchers/${launcher_name}")
set(launcher_binary
SET(launcher_binary
"${Slicer3_BINARY_DIR}/Slicer3${CMAKE_EXECUTABLE_SUFFIX}")
# MESSAGE(STATUS "launcher_platform: ${launcher_platform}")
# MESSAGE(STATUS "launcher_name: ${launcher_name}")
# MESSAGE(STATUS "launcher_source: ${launcher_source}")
# MESSAGE(STATUS "launcher_binary: ${launcher_binary}")
if(EXISTS "${launcher_source}")
configure_file("${launcher_source}" "${launcher_binary}" COPYONLY)
install(PROGRAMS "${launcher_binary}" DESTINATION ".")
......
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