Commit 4d828c62 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Organize ParaQ source tree like ParaView

Update CMake scripts to work with the restructured repository.

A new CVS repository was created on 2006-03-22 to re-organize the
ParaQ source tree into a layout similar to that of ParaView 2.x and
drop the Tcl/Tk GUI.  This was in preparation for the final transition
to the Qt-based GUI as the official ParaView 3.0 GUI.  This commit was
manufactured during conversion from CVS to represent the layout change
as part of the first commit to the new repository.
parent 195c6eca
.git* export-ignore
*.bat -crlf
*.dsp -crlf
*.dsw -crlf
*.sh crlf=input
*.sh.in crlf=input
CreateConverters.tcl crlf=input
JavaWrap.tcl crlf=input
SwigIt crlf=input
browse crlf=input
buildTkConfig.tcl crlf=input
configure crlf=input
configure.in crlf=input
hello crlf=input
install-sh crlf=input
ixset crlf=input
ldAix crlf=input
mkLinks crlf=input
newalpha crlf=input
newversion crlf=input
rmt crlf=input
rolodex crlf=input
square crlf=input
tcltk-man2html.tcl crlf=input
tcolor crlf=input
timer crlf=input
tkcon.tcl crlf=input
uniClass.tcl crlf=input
widget crlf=input
[submodule "IceT"]
path = ParaView/Utilities/IceT
path = Utilities/IceT
url = git://paraview.org/IceT.git
[submodule "ParaViewData"]
path = ParaView/Data
url = git://paraview.org/ParaViewData.git
[submodule "TclTk-8-4-5"]
path = ParaView/Utilities/TclTk/TclTk8.4.5Win
url = git://paraview.org/ParaViewTclTk.git
[submodule "VTK"]
path = ParaView/VTK
path = VTK
url = git://vtk.org/VTK.git
[submodule "Xdmf1"]
path = ParaView/Utilities/Xdmf
path = Utilities/Xdmf
url = git://paraview.org/Xdmf.git
......@@ -23,20 +23,9 @@ INCLUDE_DIRECTORIES(
${QtWidgets_BINARY_DIR}
${QtWidgets_SOURCE_DIR}
${PYTHON_INCLUDE_DIRECTORIES}
${ParaQ_SOURCE_DIR}/ParaView/Servers/Common
${ParaQ_SOURCE_DIR}/ParaView/Servers/Filters
${ParaQ_SOURCE_DIR}/ParaView/Servers/ServerManager
${ParaQ_SOURCE_DIR}/ParaView/Utilities/VTKClientServer
${ParaQ_BINARY_DIR}/ParaView/Utilities/VTKClientServer
${ParaQ_SOURCE_DIR}/ParaView/VTK/Common
${ParaQ_SOURCE_DIR}/ParaView/VTK/Filtering
${ParaQ_SOURCE_DIR}/ParaView/VTK/Graphics
${ParaQ_SOURCE_DIR}/ParaView/VTK/GUISupport/Qt
${ParaQ_SOURCE_DIR}/ParaView/VTK/Hybrid
${ParaQ_SOURCE_DIR}/ParaView/VTK/IO
${ParaQ_SOURCE_DIR}/ParaView/VTK/Rendering
${ParaQ_SOURCE_DIR}/Components/GeoViz
${ParaQ_BINARY_DIR}/ParaView/VTK
${VTK_INCLUDE_DIR}
${ParaQ_SOURCE_DIR}/VTK/GUISupport/Qt
${PARAVIEW_INCLUDE_DIRS}
)
IF(VTK_USE_MPI)
INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH})
......
PROJECT(ParaQ)
CMAKE_MINIMUM_REQUIRED(VERSION 2.2)
# Setup output directories.
SET (LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL
"Single output directory for building all libraries.")
SET (EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL
"Single output directory for building all executables.")
#########################################################################
# Disallow in-source build
STRING(COMPARE EQUAL "${ParaQ_SOURCE_DIR}"
"${ParaQ_BINARY_DIR}" INSOURCE)
IF(INSOURCE)
MESSAGE(FATAL_ERROR "ParaQ requires an out of source Build. Please create a separate binary directory and run CMake there.")
ENDIF(INSOURCE)
#########################################################################
SET(PARAQ_VERSION_MAJOR 0)
SET(PARAQ_VERSION_MINOR 9)
SET(PARAQ_VERSION_PATCH 0)
SET(PARAQ_VERSION ${PARAQ_VERSION_MAJOR}.${PARAQ_VERSION_MINOR})
# See VTK/CMakeLists.txt for an explanation of this default selection.
IF(PARAQ_VERSION_MINOR MATCHES "[02468]$")
# This is a release version. Default to not use rpath.
SET(VTK_USE_RPATH_DEFAULT OFF)
ELSE(PARAQ_VERSION_MINOR MATCHES "[02468]$")
# This is a development version. Default to use rpath.
SET(VTK_USE_RPATH_DEFAULT ON)
ENDIF(PARAQ_VERSION_MINOR MATCHES "[02468]$")
#########################################################################
# build VTK/Qt support
SET(VTK_USE_GUISUPPORT ON CACHE BOOL "Build VTK with GUI Support" FORCE)
SET(VTK_USE_QVTK ON CACHE BOOL "Build VTK with Qt Support" FORCE)
SET(DESIRED_QT_VERSION 4 CACHE STRING "Use Qt4" FORCE)
# turn off building ParaView Tk based GUI
SET(PARAVIEW_BUILD_GUI OFF CACHE BOOL "Build end user applications (ParaView, pvclient, pvbatch)")
# Work around CMake 2.2.x FindPythonLibs bug.
# Do not find Python subdirectory as python debug library.
SET(PYTHON_DEBUG_LIBRARY "" CACHE FILEPATH "Purposely empty: work around CMake FindPythonLibs bug")
SUBDIRS(
Applications
ParaView
Qt
)
#########################################################################
# Include the file that most of the environment setup (except GUI).
SET(ParaView_SOURCE_DIR ${ParaQ_SOURCE_DIR})
SET(ParaView_BINARY_DIR ${ParaQ_BINARY_DIR})
INCLUDE(${ParaQ_SOURCE_DIR}/CMake/ParaViewCommon.cmake)
#########################################################################
# Configure Testing
OPTION(BUILD_TESTING "Build ParaQ Testing" ON)
IF(BUILD_TESTING)
......@@ -36,28 +54,35 @@ IF(BUILD_TESTING)
INCLUDE (CTest)
ENDIF(BUILD_TESTING)
#########################################################################
# Configure data directory
FIND_PATH(PARAQ_DATA_ROOT ParaQData.readme ${ParaQ_SOURCE_DIR}/../ParaQData $ENV{PARAQ_DATA_ROOT})
#########################################################################
# Configure Python
OPTION(PARAQ_EMBED_PYTHON "Embedded Python Interpreter" ON)
IF(PARAQ_EMBED_PYTHON)
SUBDIRS(
Python
)
SUBDIRS(Utilities/pqPython)
ADD_DEFINITIONS(-DPARAQ_EMBED_PYTHON)
SET(BUILD_SHARED_LIBS ON CACHE BOOL "Build ParaQ using shared libraries" FORCE)
SET(PARAVIEW_WRAP_PYTHON ON CACHE BOOL "Wrap ParaView server manager into Python" FORCE)
ENDIF(PARAQ_EMBED_PYTHON)
#########################################################################
IF(BUILD_SHARED_LIBS)
ADD_DEFINITIONS(-DPARAQ_BUILD_SHARED_LIBS)
ENDIF(BUILD_SHARED_LIBS)
#########################################################################
IF(BUILD_DOCUMENTATION)
SUBDIRS(Utilities/Doxygen)
ENDIF(BUILD_DOCUMENTATION)
#########################################################################
SUBDIRS(GUI)
#########################################################################
SUBDIRS(Applications)
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