Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
# $Id: sources.cmake 102233 2017-01-13 15:59:06Z gcosmo $
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@@ -142,6 +141,51 @@ if(UNIX)
|
||||
endif()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Qt
|
||||
#
|
||||
if(GEANT4_USE_QT AND GEANT4_USE_INVENTOR_QT)
|
||||
list(APPEND G4VIS_MODULE_OPENINVENTOR_HEADERS
|
||||
G4OpenInventorQt.hh
|
||||
G4OpenInventorQtExaminerViewer.hh
|
||||
G4OpenInventorQtViewer.hh
|
||||
G4SoQt.hh
|
||||
)
|
||||
|
||||
list(APPEND G4VIS_MODULE_OPENINVENTOR_SOURCES
|
||||
G4OpenInventorQt.cc
|
||||
G4OpenInventorQtExaminerViewer.cc
|
||||
G4OpenInventorQtViewer.cc
|
||||
G4SoQt.cc
|
||||
)
|
||||
|
||||
# Include the UseQt file to build the moc wrappers
|
||||
include(${QT_USE_FILE})
|
||||
|
||||
# Add the moc sources - must use absolute path to the files
|
||||
QT4_WRAP_CPP(G4OI_MOC_SOURCES
|
||||
${CMAKE_SOURCE_DIR}/source/visualization/OpenInventor/include/G4OpenInventorQt.hh
|
||||
${CMAKE_SOURCE_DIR}/source/visualization/OpenInventor/src/G4OpenInventorQtExaminerViewer.cc
|
||||
${CMAKE_SOURCE_DIR}/source/visualization/OpenInventor/src/G4OpenInventorQtViewer.cc
|
||||
${CMAKE_SOURCE_DIR}/source/visualization/OpenInventor/src/G4SoQt.cc
|
||||
OPTIONS -DG4VIS_BUILD_OIQT_DRIVER)
|
||||
|
||||
list(APPEND G4VIS_MODULE_OPENINVENTOR_SOURCES ${G4OI_MOC_SOURCES})
|
||||
|
||||
# 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...
|
||||
add_definitions(-DG4VIS_BUILD_OIQT_DRIVER)
|
||||
add_definitions(-DG4INTY_BUILD_QT)
|
||||
add_definitions(-DG4UI_BUILD_QT_SESSION)
|
||||
|
||||
# Add in Qt libraries
|
||||
list(APPEND G4VIS_MODULE_OPENINVENTOR_LINK_LIBRARIES
|
||||
${INVENTOR_SOQT_LIBRARY}
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# WIN32 Only (Win32) sources
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user