Import Geant4 10.7.1 source tree
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
FindXQuartzGL
|
||||
-------------
|
||||
|
||||
FindModule for XQuartz implementation of OpenGL/GLU. Specific to Geant4
|
||||
to allow use of XQuartz only.
|
||||
FindModule for XQuartz/Homebrew/MacPorts implementation of OpenGL/GLU. Specific
|
||||
to Geant4 to allow use of XQuartz/Homebrew/MacPorts only.
|
||||
|
||||
Use of the module on non-macOS systems will result in a fatal error
|
||||
|
||||
@@ -49,17 +49,17 @@ set(CMAKE_FIND_FRAMEWORK_SAVE ${CMAKE_FIND_FRAMEWORK})
|
||||
set(CMAKE_FIND_FRAMEWORK NEVER)
|
||||
|
||||
find_path(XQuartzGL_INCLUDE_DIR GL/gl.h
|
||||
PATHS /usr/X11R6/include /opt/X11/include
|
||||
PATHS /usr/X11R6/include /opt/X11/include /usr/local/include /opt/local/include
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
find_library(XQuartzGL_gl_LIBRARY GL
|
||||
PATHS /usr/X11R6/lib /opt/X11/lib
|
||||
PATHS /usr/X11R6/lib /opt/X11/lib /usr/local/lib /opt/local/lib
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
find_library(XQuartzGL_glu_LIBRARY GLU
|
||||
PATHS /usr/X11R6/lib /opt/X11/lib
|
||||
PATHS /usr/X11R6/lib /opt/X11/lib /usr/local/lib /opt/local/lib
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ endif()
|
||||
if(NOT GEANT4_USE_SYSTEM_PTL)
|
||||
list(APPEND GEANT4_EXTERNALS_TARGETS G4ptl)
|
||||
set(PTL_BUILDTREE_PREFIX "${PROJECT_BINARY_DIR}/source/externals/ptl")
|
||||
set(PTL_INSTALLTREE_PREFIX "\${_geant4_thisdir}/../PTL")
|
||||
set(PTL_INSTALLTREE_PREFIX "\${_geant4_thisdir}/PTL")
|
||||
endif()
|
||||
|
||||
# - USolids
|
||||
|
||||
@@ -48,11 +48,11 @@ geant4_add_dataset(
|
||||
# - Particle XS - replaces Neutron XS
|
||||
geant4_add_dataset(
|
||||
NAME G4PARTICLEXS
|
||||
VERSION 3.1
|
||||
VERSION 3.1.1
|
||||
FILENAME G4PARTICLEXS
|
||||
EXTENSION tar.gz
|
||||
ENVVAR G4PARTICLEXSDATA
|
||||
MD5SUM 35a3fe5cf0a29d453e6805e2cfacacee
|
||||
MD5SUM 98b766fa2c447b541834cc9bf5206c05
|
||||
)
|
||||
|
||||
# - PII
|
||||
|
||||
@@ -132,6 +132,11 @@ endif()
|
||||
|
||||
# - Qt5
|
||||
if(GEANT4_USE_QT)
|
||||
# Must have CMake > 3.8 to support automoc (Bugzilla 2303)
|
||||
if(CMAKE_VERSION VERSION_LESS 3.9)
|
||||
message(FATAL_ERROR "GEANT4_USE_QT requires CMake 3.9 or newer to support automatic MOC for UI/Vis libraries")
|
||||
endif()
|
||||
|
||||
find_package(Qt5Core REQUIRED)
|
||||
find_package(Qt5Gui REQUIRED)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
|
||||
@@ -177,7 +177,7 @@ option(GEANT4_USE_SYSTEM_PTL "Use system zlib library" OFF)
|
||||
if(GEANT4_USE_SYSTEM_PTL)
|
||||
find_package(PTL REQUIRED)
|
||||
# Backward compatibility for sources.cmake using the variable
|
||||
set(PTL_LIBRARIES PTL::PTL)
|
||||
set(PTL_LIBRARIES PTL::ptl)
|
||||
geant4_save_package_variables(PTL PTL_DIR)
|
||||
else()
|
||||
set(PTL_USE_TBB ${GEANT4_USE_TBB})
|
||||
|
||||
Reference in New Issue
Block a user