Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# CMakeLists.txt
|
||||
# Module : G4UIbasic
|
||||
# Package: Geant4.src.G4interfaces.G4UIbasic
|
||||
#
|
||||
# CMakeLists.txt for building a single granular library.
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if(GEANT4_BUILD_GRANULAR_LIBS)
|
||||
include(Geant4MacroLibraryTargets)
|
||||
GEANT4_GRANULAR_LIBRARY_TARGET(COMPONENT sources.cmake)
|
||||
endif()
|
||||
|
||||
@@ -275,8 +275,11 @@ private:
|
||||
virtual G4bool GetHelpChoice(G4int&);// have to be implemeted because we heritate from G4VBasicShell
|
||||
bool eventFilter(QObject*,QEvent*);
|
||||
void ActivateCommand(G4String);
|
||||
#if QT_VERSION < 0x050F00
|
||||
QMap<int,QString> LookForHelpStringInChildTree(G4UIcommandTree *,const QString&);
|
||||
|
||||
#else
|
||||
QMultiMap<int,QString> LookForHelpStringInChildTree(G4UIcommandTree *,const QString&);
|
||||
#endif
|
||||
QWidget* CreateVisParametersTBWidget();
|
||||
QWidget* CreateHelpTBWidget();
|
||||
G4UIDockWidget* CreateCoutTBWidget();
|
||||
|
||||
@@ -1,164 +1,106 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# sources.cmake
|
||||
# Module : G4UIbasic
|
||||
# Package: Geant4.src.G4interfaces.G4UIbasic
|
||||
#
|
||||
# Sources description for a library.
|
||||
# Lists the sources and headers of the code explicitely.
|
||||
# Lists include paths needed.
|
||||
# Lists the internal granular and global dependencies of the library.
|
||||
# Source specific properties should be added at the end.
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# List external includes needed.
|
||||
include_directories(${CLHEP_INCLUDE_DIRS})
|
||||
|
||||
# List internal includes needed.
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/global/management/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/intercoms/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/interfaces/common/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/interfaces/GAG/include)
|
||||
|
||||
#
|
||||
# Module has optional sources
|
||||
#
|
||||
include(Geant4MacroDefineModule)
|
||||
|
||||
# List those always built
|
||||
set(G4INTERFACES_BASIC_MODULE_HEADERS
|
||||
G4UIArrayString.hh
|
||||
G4UIExecutive.hh
|
||||
G4UIcsh.hh
|
||||
G4UIterminal.hh
|
||||
G4VUIshell.hh)
|
||||
set(G4INTERFACES_BASIC_MODULE_HEADERS
|
||||
G4UIArrayString.hh
|
||||
G4UIExecutive.hh
|
||||
G4UIcsh.hh
|
||||
G4UIterminal.hh
|
||||
G4VUIshell.hh)
|
||||
|
||||
set(G4INTERFACES_BASIC_MODULE_SOURCES
|
||||
G4UIArrayString.cc
|
||||
G4UIExecutive.cc
|
||||
G4UIcsh.cc
|
||||
G4UIterminal.cc
|
||||
G4VUIshell.cc)
|
||||
G4UIArrayString.cc
|
||||
G4UIExecutive.cc
|
||||
G4UIcsh.cc
|
||||
G4UIterminal.cc
|
||||
G4VUIshell.cc)
|
||||
|
||||
|
||||
set(G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES )
|
||||
|
||||
|
||||
#
|
||||
# Tcsh only on UNIX style systems, but always built here
|
||||
#
|
||||
if(UNIX)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UItcsh.hh)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UItcsh.cc)
|
||||
endif()
|
||||
|
||||
|
||||
#
|
||||
# Win32 terminal only for MSVC builds, but always built here
|
||||
#
|
||||
if(MSVC)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIWin32.hh)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIWin32.cc)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIWin32.hh)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIWin32.cc)
|
||||
|
||||
GEANT4_ADD_COMPILE_DEFINITIONS(
|
||||
SOURCES G4UIWin32.cc G4UIExecutive.cc
|
||||
COMPILE_DEFINITIONS G4UI_BUILD_WIN32_SESSION;G4INTY_BUILD_WIN32
|
||||
)
|
||||
add_definitions(-DG4UI_BUILD_WIN32_SESSION -DG4INTY_BUILD_WIN32)
|
||||
endif()
|
||||
|
||||
|
||||
#
|
||||
# Qt only if selected.
|
||||
#
|
||||
if(GEANT4_USE_QT)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIQt.hh)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIQt.cc)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIQt.hh)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIQt.cc)
|
||||
|
||||
# Add the moc sources - must use an absolute path to the files being
|
||||
# wrapped
|
||||
QT4_WRAP_CPP(G4INTERFACES_MOC_SOURCES
|
||||
${CMAKE_SOURCE_DIR}/source/interfaces/basic/include/G4UIQt.hh
|
||||
OPTIONS -DG4UI_BUILD_QT_SESSION)
|
||||
# Add the definitions
|
||||
# We have to also add in G4INTY_BUILD_QT 'cause G4QT header needs that...
|
||||
add_definitions(-DG4UI_BUILD_QT_SESSION -DG4INTY_BUILD_QT)
|
||||
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES ${G4INTERFACES_MOC_SOURCES})
|
||||
|
||||
# Add the definitions
|
||||
# We have to also add in G4INTY_BUILD_QT 'cause G4QT header needs that...
|
||||
GEANT4_ADD_COMPILE_DEFINITIONS(SOURCES G4UIQt.cc G4UIExecutive.cc
|
||||
COMPILE_DEFINITIONS G4UI_BUILD_QT_SESSION;G4INTY_BUILD_QT)
|
||||
|
||||
# and for the moc file...
|
||||
set_source_files_properties(${G4INTERFACES_MOC_SOURCES}
|
||||
PROPERTIES COMPILE_DEFINITIONS G4UI_BUILD_QT_SESSION)
|
||||
|
||||
# Add the extra libraries - seem to need to quote variables to get
|
||||
# both linked in.
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES
|
||||
"${QT_QTGUI_LIBRARY};${QT_QTCORE_LIBRARY}")
|
||||
# Add the extra libraries
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES Qt5::Gui Qt5::Widgets Qt5::Core)
|
||||
endif()
|
||||
|
||||
|
||||
#
|
||||
# Wt only if selected.
|
||||
# Wt (deprecated, left in case it is revived)
|
||||
#
|
||||
if(GEANT4_USE_WT)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIWt.hh)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIWt.cc)
|
||||
|
||||
# We have to also add in G4INTY_BUILD_Wt 'cause G4Wt header needs that...
|
||||
GEANT4_ADD_COMPILE_DEFINITIONS(SOURCES G4UIWt.cc G4UIExecutive.cc
|
||||
COMPILE_DEFINITIONS G4UI_BUILD_WT_SESSION;G4INTY_BUILD_WT)
|
||||
|
||||
# Add the extra libraries
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES Wt::Wt Wt::HTTP)
|
||||
endif()
|
||||
|
||||
|
||||
#if(GEANT4_USE_WT)
|
||||
# list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIWt.cc)
|
||||
# list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIWt.hh)
|
||||
#
|
||||
# # We have to also add in G4INTY_BUILD_Wt 'cause G4Wt header needs that...
|
||||
# GEANT4_ADD_COMPILE_DEFINITIONS(SOURCES G4UIWt.cc G4UIExecutive.cc
|
||||
# COMPILE_DEFINITIONS G4UI_BUILD_WT_SESSION;G4INTY_BUILD_WT)
|
||||
#
|
||||
# # Add the extra libraries
|
||||
# list(APPEND G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES Wt::Wt Wt::HTTP)
|
||||
#endif()
|
||||
|
||||
|
||||
# Xm and only on UNIX and if selected
|
||||
#
|
||||
if(UNIX)
|
||||
if(GEANT4_USE_XM)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIXm.hh)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIXm.cc)
|
||||
if(UNIX AND GEANT4_USE_XM)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_HEADERS G4UIXm.hh)
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_SOURCES G4UIXm.cc)
|
||||
|
||||
# Add the compile definitions - also need INTY versions
|
||||
GEANT4_ADD_COMPILE_DEFINITIONS(
|
||||
SOURCES G4UIXm.cc G4UIExecutive.cc
|
||||
COMPILE_DEFINITIONS G4UI_BUILD_XM_SESSION;G4INTY_BUILD_XT
|
||||
)
|
||||
# Add the compile definitions - also need INTY versions
|
||||
add_definitions(-DG4UI_BUILD_XM_SESSION -DG4INTY_BUILD_XT)
|
||||
|
||||
# Need the X11 and Motif libraries
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES
|
||||
Motif::Xm
|
||||
X11::SM X11::ICE X11::X11 X11::Xext X11::Xmu X11::Xt
|
||||
)
|
||||
endif()
|
||||
# Need the X11 and Motif libraries
|
||||
list(APPEND G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES
|
||||
Motif::Xm
|
||||
X11::SM X11::ICE X11::X11 X11::Xext X11::Xmu X11::Xt
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
#
|
||||
# Define the Geant4 Module.
|
||||
#
|
||||
GEANT4_DEFINE_MODULE(NAME G4UIbasic
|
||||
HEADERS
|
||||
${G4INTERFACES_BASIC_MODULE_HEADERS}
|
||||
SOURCES
|
||||
${G4INTERFACES_BASIC_MODULE_SOURCES}
|
||||
GRANULAR_DEPENDENCIES
|
||||
G4UIcommon
|
||||
G4globman
|
||||
G4intercoms
|
||||
GLOBAL_DEPENDENCIES
|
||||
G4global
|
||||
G4intercoms
|
||||
LINK_LIBRARIES
|
||||
${G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES}
|
||||
${timemory_LIBRARIES}
|
||||
geant4_define_module(NAME G4UIbasic
|
||||
HEADERS
|
||||
${G4INTERFACES_BASIC_MODULE_HEADERS}
|
||||
SOURCES
|
||||
${G4INTERFACES_BASIC_MODULE_SOURCES}
|
||||
GRANULAR_DEPENDENCIES
|
||||
G4UIcommon
|
||||
G4globman
|
||||
G4intercoms
|
||||
GLOBAL_DEPENDENCIES
|
||||
G4global
|
||||
G4intercoms
|
||||
LINK_LIBRARIES
|
||||
${G4INTERFACES_BASIC_MODULE_LINK_LIBRARIES}
|
||||
${timemory_LIBRARIES}
|
||||
)
|
||||
|
||||
# List any source specific properties here
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user