Import Geant4 9.5.0 source tree
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
# $Id: sources.cmake,v 1.5 2010/12/01 16:57:53 bmorgan Exp $
|
||||
# GEANT4 Tag $Name: geant4-09-04 $
|
||||
# $Id: sources.cmake,v 1.5 2010-12-01 16:57:53 bmorgan Exp $
|
||||
# GEANT4 Tag $Name: not supported by cvs2svn $
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@@ -79,14 +79,131 @@ include_directories(${OPENGL_INCLUDE_DIR})
|
||||
set(G4VIS_MODULE_OPENGL_LINK_LIBRARIES ${OPENGL_LIBRARIES})
|
||||
|
||||
#
|
||||
# All of the above files must have the G4VIS_BUILD_OPENGL_DRIVER definition
|
||||
# All files must have the G4VIS_BUILD_OPENGL_DRIVER definition
|
||||
#
|
||||
GEANT4_ADD_COMPILE_DEFINITIONS(SOURCES ${G4VIS_MODULE_OPENGL_SOURCES}
|
||||
COMPILE_DEFINITIONS G4VIS_BUILD_OPENGL_DRIVER)
|
||||
add_definitions(-DG4VIS_BUILD_OPENGL_DRIVER)
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add X11 OpenGL Support if requested
|
||||
#
|
||||
# Qt only if selected
|
||||
if(GEANT4_USE_OPENGL_X11)
|
||||
#
|
||||
# Add in the extra X11 GL sources
|
||||
#
|
||||
list(APPEND G4VIS_MODULE_OPENGL_HEADERS
|
||||
G4OpenGLImmediateX.hh
|
||||
G4OpenGLImmediateXViewer.hh
|
||||
G4OpenGLStoredX.hh
|
||||
G4OpenGLStoredXViewer.hh
|
||||
G4OpenGLXViewer.hh)
|
||||
|
||||
list(APPEND G4VIS_MODULE_OPENGL_SOURCES
|
||||
G4OpenGLImmediateX.cc
|
||||
G4OpenGLImmediateXViewer.cc
|
||||
G4OpenGLStoredX.cc
|
||||
G4OpenGLStoredXViewer.cc
|
||||
G4OpenGLXViewer.cc)
|
||||
|
||||
# Add the includes for X11
|
||||
include_directories(${X11_INCLUDE_DIR} ${X11_Xmu_INCLUDE_PATH})
|
||||
|
||||
# Add the compile definitions needed for the X11 component
|
||||
add_definitions(-DG4VIS_BUILD_OPENGLX_DRIVER)
|
||||
|
||||
# Add in X11 libraries, plus Xmu library
|
||||
list(APPEND G4VIS_MODULE_OPENGL_LINK_LIBRARIES ${X11_LIBRARIES} ${X11_Xmu_LIBRARY})
|
||||
endif()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add Xm OpenGL Support if requested
|
||||
#
|
||||
if(GEANT4_USE_XM)
|
||||
#
|
||||
# Add in the extra Xm sources
|
||||
#
|
||||
list(APPEND G4VIS_MODULE_OPENGL_HEADERS
|
||||
G4OpenGLImmediateXm.hh
|
||||
G4OpenGLImmediateXmViewer.hh
|
||||
G4OpenGLStoredXm.hh
|
||||
G4OpenGLStoredXmViewer.hh
|
||||
G4OpenGLXmBox.hh
|
||||
G4OpenGLXmFourArrowButtons.hh
|
||||
G4OpenGLXmFramedBox.hh
|
||||
G4OpenGLXmPushButton.hh
|
||||
G4OpenGLXmRadioButton.hh
|
||||
G4OpenGLXmResources.hh
|
||||
G4OpenGLXmSeparator.hh
|
||||
G4OpenGLXmSliderBar.hh
|
||||
G4OpenGLXmTextField.hh
|
||||
G4OpenGLXmTopLevelShell.hh
|
||||
G4OpenGLXmViewer.hh
|
||||
G4OpenGLXmViewerMessenger.hh
|
||||
G4OpenGLXmVWidgetComponent.hh
|
||||
G4OpenGLXmVWidgetContainer.hh
|
||||
G4OpenGLXmVWidgetObject.hh
|
||||
G4OpenGLXmVWidgetShell.hh
|
||||
)
|
||||
|
||||
list(APPEND G4VIS_MODULE_OPENGL_SOURCES
|
||||
G4OpenGLImmediateXm.cc
|
||||
G4OpenGLImmediateXmViewer.cc
|
||||
G4OpenGLStoredXm.cc
|
||||
G4OpenGLStoredXmViewer.cc
|
||||
G4OpenGLXmBox.cc
|
||||
G4OpenGLXmConvenienceRoutines.cc
|
||||
G4OpenGLXmFourArrowButtons.cc
|
||||
G4OpenGLXmFramedBox.cc
|
||||
G4OpenGLXmMainMenubarCallbacks.cc
|
||||
G4OpenGLXmPanningCallbacks.cc
|
||||
G4OpenGLXmPushButton.cc
|
||||
G4OpenGLXmRadioButton.cc
|
||||
G4OpenGLXmRotationCallbacks.cc
|
||||
G4OpenGLXmSeparator.cc
|
||||
G4OpenGLXmSliderBar.cc
|
||||
G4OpenGLXmStyleCallbacks.cc
|
||||
G4OpenGLXmTextField.cc
|
||||
G4OpenGLXmTopLevelShell.cc
|
||||
G4OpenGLXmViewer.cc
|
||||
G4OpenGLXmViewerMessenger.cc
|
||||
G4OpenGLXmVWidgetComponent.cc
|
||||
G4OpenGLXmVWidgetContainer.cc
|
||||
G4OpenGLXmVWidgetObject.cc
|
||||
G4OpenGLXmVWidgetShell.cc
|
||||
G4OpenGLXmWindowHandlingCallbacks.cc
|
||||
)
|
||||
|
||||
# Special case of building Xm without X11
|
||||
if(NOT GEANT4_USE_OPENGL_X11)
|
||||
list(APPEND G4VIS_MODULE_OPENGL_HEADERS G4OpenGLXViewer.hh)
|
||||
list(APPEND G4VIS_MODULE_OPENGL_SOURCES G4OpenGLXViewer.cc)
|
||||
add_definitions(-DG4VIS_BUILD_OPENGLX_DRIVER)
|
||||
endif()
|
||||
|
||||
# Add the includes for X11, Xmu and Motif
|
||||
include_directories(
|
||||
${X11_INCLUDE_DIR}
|
||||
${X11_Xmu_INCLUDE_PATH}
|
||||
${MOTIF_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
# Add the compile definitions needed for the Xm component, remembering
|
||||
# to add those for the UI part as well!!!
|
||||
add_definitions(-DG4VIS_BUILD_OPENGLXM_DRIVER -DG4INTY_BUILD_XT -DG4UI_BUILD_XM_SESSION)
|
||||
|
||||
# Add in Xm, X11 libraries, plus Xmu library
|
||||
set(G4VIS_MODULE_OPENGL_LINK_LIBRARIES ${MOTIF_LIBRARIES} ${X11_LIBRARIES} ${X11_Xmu_LIBRARY} ${G4VIS_MODULE_OPENGL_LINK_LIBRARIES})
|
||||
#list(APPEND G4VIS_MODULE_OPENGL_LINK_LIBRARIES
|
||||
# ${MOTIF_LIBRARIES}
|
||||
# ${X11_LIBRARIES}
|
||||
# ${X11_Xmu_LIBRARY}
|
||||
#)
|
||||
endif()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add Qt OpenGL support if requested
|
||||
#
|
||||
if(GEANT4_USE_QT)
|
||||
#
|
||||
@@ -99,6 +216,7 @@ if(GEANT4_USE_QT)
|
||||
G4OpenGLQtMovieDialog.hh
|
||||
G4OpenGLQtViewer.hh
|
||||
G4OpenGLStoredQt.hh
|
||||
G4OpenGLStoredQtSceneHandler.hh
|
||||
G4OpenGLStoredQtViewer.hh)
|
||||
|
||||
list(APPEND G4VIS_MODULE_OPENGL_SOURCES
|
||||
@@ -108,6 +226,7 @@ if(GEANT4_USE_QT)
|
||||
G4OpenGLQtMovieDialog.cc
|
||||
G4OpenGLQtViewer.cc
|
||||
G4OpenGLStoredQt.cc
|
||||
G4OpenGLStoredQtSceneHandler.cc
|
||||
G4OpenGLStoredQtViewer.cc)
|
||||
|
||||
|
||||
@@ -123,25 +242,48 @@ if(GEANT4_USE_QT)
|
||||
|
||||
list(APPEND G4VIS_MODULE_OPENGL_SOURCES ${G4OPENGL_MOC_SOURCES})
|
||||
|
||||
# Add the definitions
|
||||
# Add the definitions - these will also be used to compile the moc sources
|
||||
# Argh.. Have to remember about INTY and UI because of their use...
|
||||
GEANT4_ADD_COMPILE_DEFINITIONS(SOURCES ${G4VIS_MODULE_OPENGL_SOURCES}
|
||||
COMPILE_DEFINITIONS
|
||||
G4VIS_BUILD_OPENGL_DRIVER;G4VIS_BUILD_OPENGLQT_DRIVER;G4INTY_BUILD_QT;G4UI_BUILD_QT_SESSION)
|
||||
|
||||
# And for the moc files because these are in the build tree
|
||||
set_source_files_properties(${G4OPENGL_MOC_SOURCES}
|
||||
PROPERTIES
|
||||
COMPILE_DEFINITIONS
|
||||
"G4VIS_BUILD_OPENGL_DRIVER;G4VIS_BUILD_OPENGLQT_DRIVER"
|
||||
)
|
||||
add_definitions(-DG4VIS_BUILD_OPENGLQT_DRIVER -DG4INTY_BUILD_QT
|
||||
-DG4UI_BUILD_QT_SESSION)
|
||||
|
||||
# Add in Qt libraries
|
||||
list(APPEND G4VIS_MODULE_OPENGL_LINK_LIBRARIES ${QT_LIBRARIES})
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add WIN32 support, if requested
|
||||
#
|
||||
if(GEANT4_USE_OPENGL_WIN32)
|
||||
#
|
||||
# Add in the extra sources
|
||||
#
|
||||
list(APPEND G4VIS_MODULE_OPENGL_HEADERS
|
||||
G4OpenGLImmediateWin32.hh
|
||||
G4OpenGLImmediateWin32Viewer.hh
|
||||
G4OpenGLStoredWin32.hh
|
||||
G4OpenGLStoredWin32Viewer.hh
|
||||
G4OpenGLWin32Viewer.hh
|
||||
)
|
||||
|
||||
list(APPEND G4VIS_MODULE_OPENGL_SOURCES
|
||||
G4OpenGLImmediateWin32.cc
|
||||
G4OpenGLImmediateWin32Viewer.cc
|
||||
G4OpenGLStoredWin32.cc
|
||||
G4OpenGLStoredWin32Viewer.cc
|
||||
G4OpenGLWin32Viewer.cc
|
||||
)
|
||||
|
||||
# Add the compile definitions
|
||||
add_definitions(-DG4VIS_BUILD_OPENGLWIN32_DRIVER)
|
||||
|
||||
# That should be it for Win32...
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Define the Geant4 Module.
|
||||
#
|
||||
GEANT4_DEFINE_MODULE(NAME G4OpenGL
|
||||
|
||||
Reference in New Issue
Block a user