Commit 586f1389 authored by barre's avatar barre

ENH: Slicer3 Spring Installation Clean Up

git-svn-id: http://svn.slicer.org/Slicer4/trunk@6777 3bd1e089-480b-0410-8dfb-8563597acbee
parent b95254c0
This diff is collapsed.
......@@ -30,7 +30,7 @@ PROJECT_NUMBER =
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
OUTPUT_DIRECTORY = $(SLICER_DOC)
OUTPUT_DIRECTORY = $(Slicer3_DOC)
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
# 4096 sub-directories (in 2 levels) under the output directory of each output
......@@ -459,7 +459,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT = $(SLICER_HOME)
INPUT = $(Slicer3_HOME)
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
......@@ -1046,7 +1046,7 @@ TAGFILES =
# When a file name is specified after GENERATE_TAGFILE, doxygen will create
# a tag file that is based on the input files it reads.
GENERATE_TAGFILE = $(SLICER_DOC)/Slicer3NightlyDoc.tag
GENERATE_TAGFILE = $(Slicer3_DOC)/Slicer3NightlyDoc.tag
# If the ALLEXTERNALS tag is set to YES all external classes will be listed
# in the class index. If set to NO only the inherited external classes
......
......@@ -23,13 +23,17 @@ SET(TCLAP_DIR_CONFIG ${Slicer3_BINARY_DIR}/Libs/tclap)
SET(ModuleDescriptionParser_DIR_CONFIG ${Slicer3_BINARY_DIR}/Libs/ModuleDescriptionParser)
SET(LoadableModule_DIR_CONFIG ${Slicer3_BINARY_DIR}/Libs/LoadableModule)
SET(GenerateCLP_DIR_CONFIG ${Slicer3_BINARY_DIR}/Libs/GenerateCLP)
SET(GenerateCLP_USE_FILE_CONFIG ${Slicer3_BINARY_DIR}/Libs/GenerateCLP/UseGenerateCLP.cmake)
SET(Slicer3_INCLUDE_DIRS_CONFIG ${Slicer3_INCLUDE_DIRS})
SET(Slicer3_LIBRARY_DIRS_CONFIG ${Slicer3_BINARY_DIR}/bin)
SET(Slicer3_Libs_INCLUDE_DIRS_CONFIG ${Slicer3_Libs_INCLUDE_DIRS})
SET(Slicer3_Libs_LIBRARY_DIRS_CONFIG ${Slicer3_BINARY_DIR}/bin)
SET(Slicer3_Base_INCLUDE_DIRS_CONFIG ${Slicer3_Base_INCLUDE_DIRS})
SET(Slicer3_Base_LIBRARY_DIRS_CONFIG ${Slicer3_BINARY_DIR}/bin)
SET(ITK_DIR_CONFIG ${ITK_DIR})
SET(VTK_DIR_CONFIG ${VTK_DIR})
SET(KWWidgets_DIR_CONFIG ${KWWidgets_DIR})
SET(TEEM_DIR_CONFIG ${TEEM_DIR})
# Configure Slicer3Config.cmake for the install tree.
CONFIGURE_FILE(
......
......@@ -8,41 +8,91 @@
#
# The C and C++ flags added by Slicer3 to the cmake-configured flags.
SET(Slicer3_REQUIRED_C_FLAGS "@Slicer3_REQUIRED_C_FLAGS@")
SET(Slicer3_REQUIRED_CXX_FLAGS "@Slicer3_REQUIRED_CXX_FLAGS@")
SET(Slicer3_REQUIRED_LINK_FLAGS "@Slicer3_REQUIRED_LINK_FLAGS@")
set(Slicer3_REQUIRED_C_FLAGS "@Slicer3_REQUIRED_C_FLAGS@")
set(Slicer3_REQUIRED_CXX_FLAGS "@Slicer3_REQUIRED_CXX_FLAGS@")
set(Slicer3_REQUIRED_LINK_FLAGS "@Slicer3_REQUIRED_LINK_FLAGS@")
# The Slicer3 version number
SET(Slicer3_VERSION_MAJOR "@Slicer3_VERSION_MAJOR@")
SET(Slicer3_VERSION_MINOR "@Slicer3_VERSION_MINOR@")
SET(Slicer3_VERSION_PATCH "@Slicer3_VERSION_PATCH@")
set(Slicer3_VERSION_MAJOR "@Slicer3_VERSION_MAJOR@")
set(Slicer3_VERSION_MINOR "@Slicer3_VERSION_MINOR@")
set(Slicer3_VERSION_PATCH "@Slicer3_VERSION_PATCH@")
# Whether Slicer3 was built with modules and CLI support.
set(Slicer3_BUILD_MODULES "@Slicer3_BUILD_MODULES@")
set(Slicer3_BUILD_CLI "@Slicer3_BUILD_CLI@")
# Whether Slicer3 was built with shared libraries.
SET(Slicer3_BUILD_SHARED "@BUILD_SHARED_LIBS@")
set(Slicer3_BUILD_SHARED "@BUILD_SHARED_LIBS@")
# Slicer3 options
set(Slicer3_USE_BatchMake "@Slicer3_USE_BatchMake@")
set(Slicer3_USE_IGSTK "@Slicer3_USE_IGSTK@")
set(Slicer3_USE_MIDAS "@Slicer3_USE_MIDAS@")
set(Slicer3_USE_NAVITRACK "@Slicer3_USE_NAVITRACK@")
set(Slicer3_USE_NUMPY "@Slicer3_USE_NUMPY@")
set(Slicer3_USE_PYTHON "@Slicer3_USE_PYTHON@")
set(Slicer3_USE_OPENTRACKER "@Slicer3_USE_OPENTRACKER@")
# Slicer home (top of the tree)
set(Slicer3_HOME "@Slicer3_HOME@")
# The CMake macros dir.
set(Slicer3_CMAKE_DIR "@Slicer3_CMAKE_DIR@")
# Slicer3 Libs libraries. Those listed here should
# automatically pull in their dependencies.
set(Slicer3_Libs_LIBRARIES "@Slicer3_Libs_LIBRARIES@")
# A list of all libraries for Slicer3. Those listed here should
# Slicer3 Libs library directories.
set(Slicer3_Libs_LIBRARY_DIRS "@Slicer3_Libs_LIBRARY_DIRS_CONFIG@")
# Slicer3 Libs include file directories.
set(Slicer3_Libs_INCLUDE_DIRS "@Slicer3_Libs_INCLUDE_DIRS_CONFIG@")
# Slicer3 Base libraries. Those listed here should
# automatically pull in their dependencies.
SET(Slicer3_LIBRARIES "@Slicer3_LIBRARIES@")
set(Slicer3_Base_LIBRARIES "@Slicer3_Base_LIBRARIES@")
# The Slicer3 include file directories.
SET(Slicer3_INCLUDE_DIRS "@Slicer3_INCLUDE_DIRS_CONFIG@")
# Slicer3 Base library directories.
set(Slicer3_Base_LIBRARY_DIRS "@Slicer3_Base_LIBRARY_DIRS_CONFIG@")
# The Slicer3 library directories.
SET(Slicer3_LIBRARY_DIRS "@Slicer3_LIBRARY_DIRS_CONFIG@")
# Slicer3 Base include file directories.
set(Slicer3_Base_INCLUDE_DIRS "@Slicer3_BINARY_DIR@" "@Slicer3_Base_INCLUDE_DIRS_CONFIG@")
# The location of the UseSlicer3.cmake file.
SET(Slicer3_USE_FILE "@Slicer3_USE_FILE_CONFIG@")
set(Slicer3_USE_FILE "@Slicer3_USE_FILE_CONFIG@")
# The build settings file.
SET(Slicer3_BUILD_SETTINGS_FILE "@Slicer3_BUILD_SETTINGS_FILE@")
set(Slicer3_BUILD_SETTINGS_FILE "@Slicer3_BUILD_SETTINGS_FILE@")
# The Slicer3 relative install directories.
set(Slicer3_INSTALL_BIN_DIR "@Slicer3_INSTALL_BIN_DIR@")
set(Slicer3_INSTALL_LIB_DIR "@Slicer3_INSTALL_LIB_DIR@")
set(Slicer3_INSTALL_INCLUDE_DIR "@Slicer3_INSTALL_INCLUDE_DIR@")
set(Slicer3_INSTALL_SHARE_DIR "@Slicer3_INSTALL_SHARE_DIR@")
set(Slicer3_INSTALL_ITKFACTORIES_DIR "@Slicer3_INSTALL_ITKFACTORIES_DIR@")
set(Slicer3_INSTALL_PLUGINS_BIN_DIR "@Slicer3_INSTALL_PLUGINS_BIN_DIR@")
set(Slicer3_INSTALL_PLUGINS_LIB_DIR "@Slicer3_INSTALL_PLUGINS_LIB_DIR@")
set(Slicer3_INSTALL_PLUGINS_INCLUDE_DIR "@Slicer3_INSTALL_PLUGINS_INCLUDE_DIR@")
set(Slicer3_INSTALL_PLUGINS_SHARE_DIR "@Slicer3_INSTALL_PLUGINS_SHARE_DIR@")
set(Slicer3_INSTALL_PLUGINS_CACHE_DIR "@Slicer3_INSTALL_PLUGINS_CACHE_DIR@")
set(Slicer3_INSTALL_MODULES_BIN_DIR "@Slicer3_INSTALL_MODULES_BIN_DIR@")
set(Slicer3_INSTALL_MODULES_LIB_DIR "@Slicer3_INSTALL_MODULES_LIB_DIR@")
set(Slicer3_INSTALL_MODULES_INCLUDE_DIR "@Slicer3_INSTALL_MODULES_INCLUDE_DIR@")
set(Slicer3_INSTALL_MODULES_SHARE_DIR "@Slicer3_INSTALL_MODULES_SHARE_DIR@")
# The Slicer3 install prefix (*not* defined in the install tree)
set(Slicer3_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
# Components needed to build modules from outside a Slicer3 build tree or
# from outside a Slicer3 installation tree
SET(TCLAP_DIR "@TCLAP_DIR_CONFIG@")
SET(ModuleDescriptionParser_DIR "@ModuleDescriptionParser_DIR_CONFIG@")
SET(GenerateCLP_DIR "@GenerateCLP_DIR_CONFIG@")
SET(GenerateCLP_USE_FILE "@GenerateCLP_USE_FILE_CONFIG@")
SET(GENERATECLP_EXE "@GENERATECLP_EXE_CONFIG@")
SET(ITK_DIR "@ITK_DIR_CONFIG@")
SET(VTK_DIR "@VTK_DIR_CONFIG@")
SET(KWWidgets_DIR "@KWWidgets_DIR_CONFIG@")
set(TCLAP_DIR "@TCLAP_DIR_CONFIG@")
set(ModuleDescriptionParser_DIR "@ModuleDescriptionParser_DIR_CONFIG@")
set(GenerateCLP_DIR "@GenerateCLP_DIR_CONFIG@")
set(GenerateLM_DIR "@GenerateLM_DIR@")
set(ITK_DIR "@ITK_DIR_CONFIG@")
set(VTK_DIR "@VTK_DIR_CONFIG@")
set(KWWidgets_DIR "@KWWidgets_DIR_CONFIG@")
set(TEEM_DIR "@TEEM_DIR_CONFIG@")
......@@ -8,59 +8,132 @@
#
# The C and C++ flags added by Slicer3 to the cmake-configured flags.
SET(Slicer3_REQUIRED_C_FLAGS "@Slicer3_REQUIRED_C_FLAGS@")
SET(Slicer3_REQUIRED_CXX_FLAGS "@Slicer3_REQUIRED_CXX_FLAGS@")
SET(Slicer3_REQUIRED_LINK_FLAGS "@Slicer3_REQUIRED_LINK_FLAGS@")
set(Slicer3_REQUIRED_C_FLAGS "@Slicer3_REQUIRED_C_FLAGS@")
set(Slicer3_REQUIRED_CXX_FLAGS "@Slicer3_REQUIRED_CXX_FLAGS@")
set(Slicer3_REQUIRED_LINK_FLAGS "@Slicer3_REQUIRED_LINK_FLAGS@")
# The Slicer3 version number
SET(Slicer3_VERSION_MAJOR "@Slicer3_VERSION_MAJOR@")
SET(Slicer3_VERSION_MINOR "@Slicer3_VERSION_MINOR@")
SET(Slicer3_VERSION_PATCH "@Slicer3_VERSION_PATCH@")
set(Slicer3_VERSION_MAJOR "@Slicer3_VERSION_MAJOR@")
set(Slicer3_VERSION_MINOR "@Slicer3_VERSION_MINOR@")
set(Slicer3_VERSION_PATCH "@Slicer3_VERSION_PATCH@")
# Whether Slicer3 was built with modules and CLI support.
set(Slicer3_BUILD_MODULES "@Slicer3_BUILD_MODULES@")
set(Slicer3_BUILD_CLI "@Slicer3_BUILD_CLI@")
# Whether Slicer3 was built with shared libraries.
SET(Slicer3_BUILD_SHARED "@BUILD_SHARED_LIBS@")
set(Slicer3_BUILD_SHARED "@BUILD_SHARED_LIBS@")
# A list of all libraries for Slicer3. Those listed here should
# automatically pull in their dependencies.
SET(Slicer3_LIBRARIES "@Slicer3_LIBRARIES@")
# Slicer3 options
set(Slicer3_USE_BatchMake "@Slicer3_USE_BatchMake@")
set(Slicer3_USE_IGSTK "@Slicer3_USE_IGSTK@")
set(Slicer3_USE_MIDAS "@Slicer3_USE_MIDAS@")
set(Slicer3_USE_NAVITRACK "@Slicer3_USE_NAVITRACK@")
set(Slicer3_USE_NUMPY "@Slicer3_USE_NUMPY@")
set(Slicer3_USE_PYTHON "@Slicer3_USE_PYTHON@")
set(Slicer3_USE_OPENTRACKER "@Slicer3_USE_OPENTRACKER@")
# Slicer could be installed anywhere, so set all paths based on where
# this file was found (which should be the lib/Slicer3 directory of the
# installation)
GET_FILENAME_COMPONENT(Slicer3_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# The Slicer3 include file directories.
SET(Slicer3_INCLUDE_DIRS
"${Slicer3_CONFIG_DIR}/../../include/Slicer3"
"${Slicer3_CONFIG_DIR}/../../include/MRML"
"${Slicer3_CONFIG_DIR}/../../include/vtkITK"
)
# The Slicer3 library directories.
# ${Slicer3_CONFIG_DIR}/.. is needed for VTK and teem
SET(Slicer3_LIBRARY_DIRS
"${Slicer3_CONFIG_DIR}"
"${Slicer3_CONFIG_DIR}/.."
"${Slicer3_CONFIG_DIR}/../MRML"
)
get_filename_component(Slicer3_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# Slicer home (top of the tree)
set(Slicer3_HOME "${Slicer3_CONFIG_DIR}/../..")
get_filename_component(Slicer3_HOME ${Slicer3_HOME} ABSOLUTE)
# The CMake macros dir.
set(Slicer3_CMAKE_DIR "${Slicer3_HOME}/@Slicer3_INSTALL_LIB_DIR@/CMake")
# Slicer3 Libs libraries. Those listed here should
# automatically pull in their dependencies.
set(Slicer3_Libs_LIBRARIES "@Slicer3_Libs_LIBRARIES@")
# Slicer3 Libs library directories.
set(Slicer3_Libs_LIBRARY_DIRS
"${Slicer3_HOME}/lib/FreeSurfer"
"${Slicer3_HOME}/lib/IGT"
"${Slicer3_HOME}/lib/ITKCommandIO"
"${Slicer3_HOME}/lib/LoadableModule"
"${Slicer3_HOME}/lib/MGHImageIO"
"${Slicer3_HOME}/lib/MRML"
"${Slicer3_HOME}/lib/MRMLIDImageIO"
"${Slicer3_HOME}/lib/ModuleDescriptionParser"
"${Slicer3_HOME}/lib/Qdec"
"${Slicer3_HOME}/lib/RemoteIO"
"${Slicer3_HOME}/lib/SlicerIO"
"${Slicer3_HOME}/lib/tclap"
"${Slicer3_HOME}/lib/vtkITK"
"${Slicer3_HOME}/lib/vtkTeem"
)
# Slicer3 Libs include file directories.
set(Slicer3_Libs_INCLUDE_DIRS
"${Slicer3_HOME}/include/FreeSurfer"
"${Slicer3_HOME}/include/IGT"
"${Slicer3_HOME}/include/ITKCommandIO"
"${Slicer3_HOME}/include/LoadableModule"
"${Slicer3_HOME}/include/MGHImageIO"
"${Slicer3_HOME}/include/MRML"
"${Slicer3_HOME}/include/MRMLIDImageIO"
"${Slicer3_HOME}/include/ModuleDescriptionParser"
"${Slicer3_HOME}/include/Qdec"
"${Slicer3_HOME}/include/RemoteIO"
"${Slicer3_HOME}/include/SlicerIO"
"${Slicer3_HOME}/include/tclap"
"${Slicer3_HOME}/include/vtkITK"
"${Slicer3_HOME}/include/vtkTeem"
)
# Slicer3 Base libraries. Those listed here should
# automatically pull in their dependencies.
set(Slicer3_Base_LIBRARIES "@Slicer3_Base_LIBRARIES@")
# Slicer3 Base library directories.
set(Slicer3_Base_LIBRARY_DIRS
"${Slicer3_HOME}/@Slicer3_INSTALL_LIB_DIR@"
)
# Slicer3 Base include file directories.
set(Slicer3_Base_INCLUDE_DIRS
"${Slicer3_HOME}/@Slicer3_INSTALL_INCLUDE_DIR@"
"${Slicer3_HOME}/@Slicer3_INSTALL_INCLUDE_DIR@/SlicerBaseCLI"
"${Slicer3_HOME}/@Slicer3_INSTALL_INCLUDE_DIR@/SlicerBaseGUI"
"${Slicer3_HOME}/@Slicer3_INSTALL_INCLUDE_DIR@/SlicerBaseLogic"
)
# The location of the UseSlicer3.cmake file.
SET(Slicer3_USE_FILE "${Slicer3_CONFIG_DIR}/UseSlicer3.cmake")
set(Slicer3_USE_FILE "${Slicer3_CONFIG_DIR}/UseSlicer3.cmake")
# The build settings file.
SET(Slicer3_BUILD_SETTINGS_FILE
set(Slicer3_BUILD_SETTINGS_FILE
"${Slicer3_CONFIG_DIR}/Slicer3BuildSettings.cmake")
# The Slicer3 relative install directories.
set(Slicer3_INSTALL_BIN_DIR "@Slicer3_INSTALL_BIN_DIR@")
set(Slicer3_INSTALL_LIB_DIR "@Slicer3_INSTALL_LIB_DIR@")
set(Slicer3_INSTALL_INCLUDE_DIR "@Slicer3_INSTALL_INCLUDE_DIR@")
set(Slicer3_INSTALL_SHARE_DIR "@Slicer3_INSTALL_SHARE_DIR@")
set(Slicer3_INSTALL_ITKFACTORIES_DIR "@Slicer3_INSTALL_ITKFACTORIES_DIR@")
set(Slicer3_INSTALL_PLUGINS_BIN_DIR "@Slicer3_INSTALL_PLUGINS_BIN_DIR@")
set(Slicer3_INSTALL_PLUGINS_LIB_DIR "@Slicer3_INSTALL_PLUGINS_LIB_DIR@")
set(Slicer3_INSTALL_PLUGINS_INCLUDE_DIR "@Slicer3_INSTALL_PLUGINS_INCLUDE_DIR@")
set(Slicer3_INSTALL_PLUGINS_SHARE_DIR "@Slicer3_INSTALL_PLUGINS_SHARE_DIR@")
set(Slicer3_INSTALL_PLUGINS_CACHE_DIR "@Slicer3_INSTALL_PLUGINS_CACHE_DIR@")
set(Slicer3_INSTALL_MODULES_BIN_DIR "@Slicer3_INSTALL_MODULES_BIN_DIR@")
set(Slicer3_INSTALL_MODULES_LIB_DIR "@Slicer3_INSTALL_MODULES_LIB_DIR@")
set(Slicer3_INSTALL_MODULES_INCLUDE_DIR "@Slicer3_INSTALL_MODULES_INCLUDE_DIR@")
set(Slicer3_INSTALL_MODULES_SHARE_DIR "@Slicer3_INSTALL_MODULES_SHARE_DIR@")
# Components needed to build modules from outside a Slicer3 build tree or
# from outside a Slicer3 installation tree
SET(TCLAP_DIR "${Slicer3_CONFIG_DIR}/../tclap")
SET(ModuleDescriptionParser_DIR "${Slicer3_CONFIG_DIR}/../ModuleDescriptionParser")
SET(GenerateCLP_DIR "${Slicer3_CONFIG_DIR}/../GenerateCLP")
SET(GenerateCLP_USE_FILE "${GenerateCLP_DIR}/UseGenerateCLP.cmake")
SET(GENERATECLP_EXE "${Slicer3_CONFIG_DIR}/../../bin/GenerateCLP")
SET(ITK_DIR "${Slicer3_CONFIG_DIR}/../InsightToolkit")
# VTK_DIR needs to be an absolute path for the VTKConfig.cmake file to work
SET(VTK_DIR "${Slicer3_CONFIG_DIR}/../vtk-5.0")
GET_FILENAME_COMPONENT(VTK_DIR ${VTK_DIR} ABSOLUTE)
SET(KWWidgets_DIR "${Slicer3_CONFIG_DIR}/../KWWidgets")
GET_FILENAME_COMPONENT(KWWidgets_DIR ${KWWidgets_DIR} ABSOLUTE)
set(TCLAP_DIR "${Slicer3_HOME}/lib/tclap")
set(ModuleDescriptionParser_DIR "${Slicer3_HOME}/lib/ModuleDescriptionParser")
set(GenerateCLP_DIR "${Slicer3_HOME}/lib/GenerateCLP")
set(GenerateLM_DIR "${Slicer3_HOME}/lib/GenerateLM")
set(ITK_DIR "${Slicer3_HOME}/lib/InsightToolkit")
set(VTK_DIR "${Slicer3_HOME}/lib/vtk-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@")
set(KWWidgets_DIR "${Slicer3_HOME}/lib/KWWidgets")
set(TEEM_DIR "${Slicer3_HOME}/lib/TEEM-@TEEM_VERSION_MAJOR@.@TEEM_VERSION_MINOR@")
......@@ -4,35 +4,51 @@
# Slicer3 modules built against a Slicer3 build tree or a Slicer3 installation.
#
FIND_PACKAGE(GenerateCLP REQUIRED)
IF(GenerateCLP_FOUND)
INCLUDE(${GenerateCLP_USE_FILE})
ENDIF(GenerateCLP_FOUND)
FIND_PACKAGE(KWWidgets)
IF(KWWidgets_FOUND)
INCLUDE(${KWWidgets_USE_FILE})
ENDIF(KWWidgets_FOUND)
#IF(Slicer3_BUILD_SETTINGS_FILE)
# INCLUDE(${CMAKE_ROOT}/Modules/CMakeImportBuildSettings.cmake)
# CMAKE_IMPORT_BUILD_SETTINGS(${Slicer3_BUILD_SETTINGS_FILE})
#ENDIF(Slicer3_BUILD_SETTINGS_FILE)
find_package(GenerateCLP REQUIRED)
if(GenerateCLP_FOUND)
include(${GenerateCLP_USE_FILE})
endif(GenerateCLP_FOUND)
find_package(GenerateLM REQUIRED)
if(GenerateLM_FOUND)
include(${GenerateLM_USE_FILE})
endif(GenerateLM_FOUND)
find_package(KWWidgets REQUIRED)
if(KWWidgets_FOUND)
include(${KWWidgets_USE_FILE})
endif(KWWidgets_FOUND)
find_package(TEEM REQUIRED)
if(TEEM_FOUND)
include(${TEEM_USE_FILE})
endif(TEEM_FOUND)
# Add compiler flags needed to use Slicer3.
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${Slicer3_REQUIRED_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Slicer3_REQUIRED_CXX_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${Slicer3_REQUIRED_LINK_FLAGS}")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${Slicer3_REQUIRED_LINK_FLAGS}")
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${Slicer3_REQUIRED_LINK_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${Slicer3_REQUIRED_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Slicer3_REQUIRED_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${Slicer3_REQUIRED_LINK_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${Slicer3_REQUIRED_LINK_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${Slicer3_REQUIRED_LINK_FLAGS}")
IF(NOT DEFINED BUILD_SHARED_LIBS)
SET(BUILD_SHARED_LIBS ${Slicer3_BUILD_SHARED})
ENDIF(NOT DEFINED BUILD_SHARED_LIBS)
if(NOT DEFINED BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS ${Slicer3_BUILD_SHARED})
endif(NOT DEFINED BUILD_SHARED_LIBS)
# Add include directories needed to use Slicer3.
INCLUDE_DIRECTORIES(BEFORE ${Slicer3_INCLUDE_DIRS})
include_directories(BEFORE
${Slicer3_Libs_INCLUDE_DIRS}
${Slicer3_Base_INCLUDE_DIRS}
)
# Add link directories needed to use Slicer3.
LINK_DIRECTORIES(${Slicer3_LIBRARY_DIRS})
link_directories(
${Slicer3_Libs_LIBRARY_DIRS}
${Slicer3_Base_LIBRARY_DIRS}
)
# Add cmake module path.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Slicer3_CMAKE_DIR}")
include("${Slicer3_CMAKE_DIR}/Slicer3PersistenceMacros.cmake")
include("${Slicer3_CMAKE_DIR}/Slicer3ModulesMacros.cmake")
include("${Slicer3_CMAKE_DIR}/Slicer3PluginsMacros.cmake")
This diff is collapsed.
......@@ -12,18 +12,18 @@
## variables that are the same for all systems
set ::SLICER_DATA_ROOT ""
set ::Slicer3_DATA_ROOT ""
if {[info exists ::env(SLICER_HOME)]} {
if {[info exists ::env(Slicer3_HOME)]} {
# already set by the launcher
set ::SLICER_HOME $::env(SLICER_HOME)
set ::Slicer3_HOME $::env(Slicer3_HOME)
} else {
# if sourcing this into cmaker, SLICER_HOME may not be set
# set the SLICER_HOME directory to the one in which this script resides
# if sourcing this into cmaker, Slicer3_HOME may not be set
# set the Slicer3_HOME directory to the one in which this script resides
set cwd [pwd]
cd [file dirname [info script]]
set ::SLICER_HOME [pwd]
set ::env(SLICER_HOME) $::SLICER_HOME
set ::Slicer3_HOME [pwd]
set ::env(Slicer3_HOME) $::Slicer3_HOME
cd $cwd
}
......@@ -57,12 +57,12 @@ switch $::tcl_platform(os) {
}
default {
set ::env(BUILD) $::WINDOWS
set ::SLICER_HOME [file attributes $::SLICER_HOME -shortname]
set ::env(SLICER_HOME) $::SLICER_HOME
set ::Slicer3_HOME [file attributes $::Slicer3_HOME -shortname]
set ::env(Slicer3_HOME) $::Slicer3_HOME
}
}
puts stderr "SLICER_HOME is $::SLICER_HOME"
puts stderr "Slicer3_HOME is $::Slicer3_HOME"
# Choose which library versions you want to compile against. These
# shouldn't be changed between releases except for testing purposes.
......@@ -72,7 +72,7 @@ puts stderr "SLICER_HOME is $::SLICER_HOME"
# changes in the "Files to test if library has already been built"
# section below, or genlib will happily build the library again.
set ::SLICER_TAG "http://www.na-mic.org/svn/Slicer3/trunk"
set ::Slicer3_TAG "http://www.na-mic.org/svn/Slicer3/trunk"
set ::CMAKE_TAG "CMake-2-6"
set ::TEEM_TAG "Teem-1-9-0-patches"
set ::KWWidgets_TAG "HEAD"
......@@ -82,44 +82,44 @@ set ::SLICERLIBCURL_TAG "HEAD"
# Set library, binary, etc. paths...
# if SLICER_LIB and SLICER_BUILD haven't been set,
# if Slicer3_LIB and Slicer3_BUILD haven't been set,
# then assume they are in the 'standard' places next to the source tree
# (as created by getbuildtest.tcl
if { ![info exists ::SLICER_LIB] } {
if { ![info exists ::Slicer3_LIB] } {
set wd [pwd]
cd $::SLICER_HOME/../Slicer3-lib
set ::SLICER_LIB [pwd]
cd $::Slicer3_HOME/../Slicer3-lib
set ::Slicer3_LIB [pwd]
cd $wd
}
if { ![info exists ::SLICER_BUILD] } {
if { ![info exists ::Slicer3_BUILD] } {
set wd [pwd]
cd $::SLICER_HOME/../Slicer3-build
set ::SLICER_BUILD [pwd]
cd $::Slicer3_HOME/../Slicer3-build
set ::Slicer3_BUILD [pwd]
cd $wd
}
set ::TEEM_SRC_DIR $::SLICER_LIB/teem
set ::TEEM_BUILD_DIR $::SLICER_LIB/teem-build
set ::VTK_DIR $::SLICER_LIB/VTK-build
set ::VTK_SRC_DIR $::SLICER_LIB/VTK
set ::TEEM_SRC_DIR $::Slicer3_LIB/teem
set ::TEEM_BUILD_DIR $::Slicer3_LIB/teem-build
set ::VTK_DIR $::Slicer3_LIB/VTK-build
set ::VTK_SRC_DIR $::Slicer3_LIB/VTK
if { ![info exists ::VTK_BUILD_TYPE] } {
# set a default if it hasn't already been specified
set ::VTK_BUILD_TYPE "Debug" ;# options: Release, RelWithDebInfo, Debug
}
set ::VTK_BUILD_SUBDIR $::VTK_BUILD_TYPE
set ::env(VTK_BUILD_TYPE) $::VTK_BUILD_TYPE
set ::KWWidgets_BUILD_DIR $::SLICER_LIB/KWWidgets-build
set ::KWWIDGETS_DIR $::SLICER_LIB/KWWidgets
set ::ITK_BINARY_PATH $::SLICER_LIB/Insight-build
set ::TCL_BIN_DIR $::SLICER_LIB/tcl-build/bin
set ::TCL_LIB_DIR $::SLICER_LIB/tcl-build/lib
set ::TCL_INCLUDE_DIR $::SLICER_LIB/tcl-build/include
set ::CMAKE_PATH $::SLICER_LIB/CMake-build
set ::KWWidgets_BUILD_DIR $::Slicer3_LIB/KWWidgets-build
set ::KWWIDGETS_DIR $::Slicer3_LIB/KWWidgets
set ::ITK_BINARY_PATH $::Slicer3_LIB/Insight-build
set ::TCL_BIN_DIR $::Slicer3_LIB/tcl-build/bin
set ::TCL_LIB_DIR $::Slicer3_LIB/tcl-build/lib
set ::TCL_INCLUDE_DIR $::Slicer3_LIB/tcl-build/include
set ::CMAKE_PATH $::Slicer3_LIB/CMake-build
set ::SOV_BINARY_DIR ""
set ::XVNC_EXECUTABLE " "
set ::IGSTK_DIR $::SLICER_LIB/IGSTK-build
set ::SLICERLIBCURL_SRC_DIR $::SLICER_LIB/cmcurl
set ::SLICERLIBCURL_BUILD_DIR $::SLICER_LIB/cmcurl-build
set ::IGSTK_DIR $::Slicer3_LIB/IGSTK-build
set ::SLICERLIBCURL_SRC_DIR $::Slicer3_LIB/cmcurl
set ::SLICERLIBCURL_BUILD_DIR $::Slicer3_LIB/cmcurl-build
# Options for building IGT modules in Slicer
......@@ -167,7 +167,7 @@ switch $::tcl_platform(os) {
set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
set ::TK_EVENT_PATCH $::SLICER_HOME/tkEventPatch.diff
set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/libIGSTK.$shared_lib_ext
set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
......@@ -187,7 +187,7 @@ switch $::tcl_platform(os) {
set ::VTK_TK_LIB $::TCL_LIB_DIR/libtk8.4.$shared_lib_ext
set ::VTK_TCLSH $::TCL_BIN_DIR/tclsh8.4
set ::ITK_TEST_FILE $::ITK_BINARY_PATH/bin/libITKCommon.$shared_lib_ext
set ::TK_EVENT_PATCH $::SLICER_HOME/tkEventPatch.diff
set ::TK_EVENT_PATCH $::Slicer3_HOME/tkEventPatch.diff
set ::env(VTK_BUILD_SUBDIR) $::VTK_BUILD_SUBDIR
set ::IGSTK_TEST_FILE $::IGSTK_DIR/bin/libIGSTK.$shared_lib_ext
set ::SLICERLIBCURL_TEST_FILE $::SLICERLIBCURL_BUILD_DIR/bin/libslicerlibcurl.a
......@@ -223,8 +223,8 @@ switch $::tcl_platform(os) {
switch $::tcl_platform(os) {
"SunOS" {
set ::VTKSLICERBASE_BUILD_LIB $::SLICER_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
set ::VTKSLICERBASE_BUILD_TCL_LIB $::SLICER_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
set ::GENERATOR "Unix Makefiles"
set ::COMPILER_PATH "/local/os/bin"
set ::COMPILER "g++"
......@@ -233,8 +233,8 @@ switch $::tcl_platform(os) {
set ::SERIAL_MAKE "gmake"
}
"Linux" {
set ::VTKSLICERBASE_BUILD_LIB $::SLICER_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
set ::VTKSLICERBASE_BUILD_TCL_LIB $::SLICER_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.so
set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.so
set ::GENERATOR "Unix Makefiles"
set ::COMPILER_PATH "/usr/bin"
set ::COMPILER "g++"
......@@ -244,8 +244,8 @@ switch $::tcl_platform(os) {
set ::SERIAL_MAKE "make"
}
"Darwin" {
set ::VTKSLICERBASE_BUILD_LIB $::SLICER_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.dylib
set ::VTKSLICERBASE_BUILD_TCL_LIB $::SLICER_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.dylib
set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBase.dylib
set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/vtkSlicerBaseTCL.dylib
set ::GENERATOR "Unix Makefiles"
set ::COMPILER_PATH "/usr/bin"
set ::COMPILER "g++"
......@@ -259,8 +259,8 @@ switch $::tcl_platform(os) {
# (VC7 is Visual C++ 7.0, also known as the .NET version)
set ::VTKSLICERBASE_BUILD_LIB $::SLICER_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBase.lib
set ::VTKSLICERBASE_BUILD_TCL_LIB $::SLICER_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBaseTCL.lib
set ::VTKSLICERBASE_BUILD_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBase.lib
set ::VTKSLICERBASE_BUILD_TCL_LIB $::Slicer3_HOME/Base/builds/$::env(BUILD)/bin/$::VTK_BUILD_TYPE/vtkSlicerBaseTCL.lib
set ::CMAKE $::CMAKE_PATH/bin/cmake.exe
......
This diff is collapsed.
/*
* Here is where system computed values get stored.
* These values should only change when the target compile platform changes.
*/
#if defined(WIN32) && !defined(VTKSLICER_STATIC)
#pragma warning ( disable : 4275 )
#endif
#cmakedefine CMAKE_WORDS_BIGENDIAN
#ifdef CMAKE_WORDS_BIGENDIAN
#define WORDS_BIGENDIAN
#else
#define WORDS_LITTLEENDIAN
#endif
#cmakedefine BUILD_SHARED_LIBS
#ifndef BUILD_SHARED_LIBS
#define VTKSLICER_STATIC
#endif
#cmakedefine Slicer3_USE_BatchMake
#cmakedefine Slicer3_USE_IGSTK
#cmakedefine Slicer3_USE_MIDAS
#cmakedefine Slicer3_USE_NAVITRACK
#cmakedefine Slicer3_USE_NUMPY
#cmakedefine Slicer3_USE_PYTHON
#cmakedefine Slicer3_USE_OPENTRACKER
#define VTKSLICER_CONFIGURATION_TYPES "@CMAKE_CONFIGURATION_TYPES@"
#define Slicer3_INSTALL_BIN_DIR "@Slicer3_INSTALL_BIN_DIR@"
#define Slicer3_INSTALL_LIB_DIR "@Slicer3_INSTALL_LIB_DIR@"
#define Slicer3_INSTALL_INCLUDE_DIR "@Slicer3_INSTALL_INCLUDE_DIR@"
#define Slicer3_INSTALL_SHARE_DIR "@Slicer3_INSTALL_SHARE_DIR@"
#define Slicer3_INSTALL_ITKFACTORIES_DIR "@Slicer3_INSTALL_ITKFACTORIES_DIR@"
#define Slicer3_INSTALL_PLUGINS_BIN_DIR "@Slicer3_INSTALL_PLUGINS_BIN_DIR@"
#define Slicer3_INSTALL_PLUGINS_LIB_DIR "@Slicer3_INSTALL_PLUGINS_LIB_DIR@"
#define Slicer3_INSTALL_PLUGINS_INCLUDE_DIR "@Slicer3_INSTALL_PLUGINS_INCLUDE_DIR@"
#define Slicer3_INSTALL_PLUGINS_SHARE_DIR "@Slicer3_INSTALL_PLUGINS_SHARE_DIR@"
#define Slicer3_INSTALL_PLUGINS_CACHE_DIR "@Slicer3_INSTALL_PLUGINS_CACHE_DIR@"
#define Slicer3_INSTALL_MODULES_BIN_DIR "@Slicer3_INSTALL_MODULES_BIN_DIR@"
#define Slicer3_INSTALL_MODULES_LIB_DIR "@Slicer3_INSTALL_MODULES_LIB_DIR@"
#define Slicer3_INSTALL_MODULES_INCLUDE_DIR "@Slicer3_INSTALL_MODULES_INCLUDE_DIR@"
#define Slicer3_INSTALL_MODULES_SHARE_DIR "@Slicer3_INSTALL_MODULES_SHARE_DIR@"
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