Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
043a042d
Commit
043a042d
authored
9 years ago
by
Markus Frank
Browse files
Options
Downloads
Patches
Plain Diff
Attempt to fix nightly errors.
parent
5e30a7e0
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/DD4hepBuild.cmake
+125
-108
125 additions, 108 deletions
cmake/DD4hepBuild.cmake
cmake/DD4hepConfig.cmake.in
+23
-16
23 additions, 16 deletions
cmake/DD4hepConfig.cmake.in
examples/CMakeLists.txt
+6
-5
6 additions, 5 deletions
examples/CMakeLists.txt
with
154 additions
and
129 deletions
cmake/DD4hepBuild.cmake
+
125
−
108
View file @
043a042d
This diff is collapsed.
Click to expand it.
cmake/DD4hepConfig.cmake.in
+
23
−
16
View file @
043a042d
...
@@ -13,20 +13,27 @@
...
@@ -13,20 +13,27 @@
# @author Jan Engels, Desy
# @author Jan Engels, Desy
##############################################################################
##############################################################################
SET( DD4hep_DIR "@CMAKE_INSTALL_PREFIX@" )
set ( DD4hep_DIR "@CMAKE_INSTALL_PREFIX@" )
SET( DD4hep_ROOT "@CMAKE_INSTALL_PREFIX@" )
set ( DD4hep_ROOT "@CMAKE_INSTALL_PREFIX@" )
SET( DD4hep_VERSION "@DD4hep_VERSION@" )
set ( DD4hep_VERSION "@DD4hep_VERSION@" )
set ( DD4HEP_USE_BOOST "@DD4HEP_USE_BOOST@" )
set ( DD4HEP_USE_GEANT4 "@DD4HEP_USE_GEANT4@" )
set ( DD4HEP_USE_XERCESC "@DD4HEP_USE_XERCESC@" )
INCLUDE( ${DD4hep_DIR}/cmake/DD4hep.cmake )
set ( Geant4_DIR "@Geant4_DIR@" )
set ( GEANT4_USE_CLHEP "@GEANT4_USE_CLHEP@" )
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DD4hep_DIR}/cmake/ )
include ( ${DD4hep_DIR}/cmake/DD4hep.cmake )
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DD4hep_DIR}/cmake )
# ---------- include dirs -----------------------------------------------------
# ---------- include dirs -----------------------------------------------------
# do not store find results in cache
# do not store find results in cache
SET( DD4hep_INCLUDE_DIRS DD4hep_INCLUDE_DIRS-NOTFOUND )
set( DD4hep_INCLUDE_DIRS DD4hep_INCLUDE_DIRS-NOTFOUND )
MARK_AS_ADVANCED( DD4hep_INCLUDE_DIRS )
mark_as_advanced( DD4hep_INCLUDE_DIRS )
FIND_PATH
( DD4hep_INCLUDE_DIRS
find_path
( DD4hep_INCLUDE_DIRS
NAMES DD4hep/Detector.h
NAMES DD4hep/Detector.h
PATHS ${DD4hep_DIR}/include
PATHS ${DD4hep_DIR}/include
NO_DEFAULT_PATH
NO_DEFAULT_PATH
...
@@ -39,21 +46,21 @@ endif()
...
@@ -39,21 +46,21 @@ endif()
# ---------- libraries --------------------------------------------------------
# ---------- libraries --------------------------------------------------------
# do not store find results in cache
# do not store find results in cache
SET
( DD4hep_LIBRARY_DIRS ${DD4hep_DIR}/lib )
set
( DD4hep_LIBRARY_DIRS ${DD4hep_DIR}/lib )
SET
( DD4hep_LIBRARIES DD4hep_LIBRARIES-NOTFOUND )
set
( DD4hep_LIBRARIES
DD4hep_LIBRARIES-NOTFOUND )
MARK_AS_ADVANCED
( DD4hep_LIBRARY_DIRS DD4hep_LIBRARIES )
mark_as_advanced
( DD4hep_LIBRARY_DIRS DD4hep_LIBRARIES )
INCLUDE
( ${DD4hep_DIR}/cmake/DD4hepMacros.cmake )
include
( ${DD4hep_DIR}/cmake/DD4hepMacros.cmake )
# only standard libraries should be passed as arguments to CHECK_PACKAGE_LIBS
# only standard libraries should be passed as arguments to CHECK_PACKAGE_LIBS
# additional components are set by cmake in variable PKG_FIND_COMPONENTS
# additional components are set by cmake in variable PKG_FIND_COMPONENTS
# first argument should be the package name
# first argument should be the package name
if
(@
DD4HEP_USE_GEANT4
@
)
if
( ${
DD4HEP_USE_GEANT4
}
)
#--- if geant 4 was built with CLHEP we need to export this to client packages
#--- if geant 4 was built with CLHEP we need to export this to client packages
if(
@
GEANT4_USE_CLHEP
@
)
if(
${
GEANT4_USE_CLHEP
}
)
set(GEANT4_USE_CLHEP 1 )
set(
GEANT4_USE_CLHEP 1 )
endif()
endif()
set(Geant4_DIR
@
Geant4_DIR
@
)
set(Geant4_DIR
${
Geant4_DIR
}
)
endif()
endif()
CHECK_PACKAGE_LIBS(DD4hep DDCore)
CHECK_PACKAGE_LIBS(DD4hep DDCore)
...
...
This diff is collapsed.
Click to expand it.
examples/CMakeLists.txt
+
6
−
5
View file @
043a042d
...
@@ -19,15 +19,16 @@
...
@@ -19,15 +19,16 @@
# cmake ..
# cmake ..
#
#
# F.Gaede, DESY, 2013
# F.Gaede, DESY, 2013
#
#
# M.Frank, CERN, 2015: Adapt to new cmake scripts
#==========================================================================
#==========================================================================
cmake_minimum_required
(
VERSION 2.8.3 FATAL_ERROR
)
cmake_minimum_required
(
VERSION 2.8.3 FATAL_ERROR
)
option
(
BUILD_TESTING
"Enable and build tests"
ON
)
option
(
BUILD_TESTING
"Enable and build tests"
ON
)
find_package
(
DD4hep REQUIRED
)
#
#
include
(
${
DD4hep_DIR
}
/cmake/DD4hep.cmake
)
include
(
${
DD4hep_DIR
}
/cmake/DD4hep.cmake
)
#
#
dd4hep_package
(
DD4hepExample MAJOR 0 MINOR 0 PATCH 1
)
dd4hep_package
(
DD4hepExample MAJOR 0 MINOR 0 PATCH 1
USES [ROOT REQUIRED COMPONENTS Geom]
)
#
#
dd4hep_enable_tests
(
dd4hep_enable_tests
(
AlignDet CLICSiD ClientTests SimpleDetector
)
AlignDet CLICSiD ClientTests SimpleDetector
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment