Skip to content
Snippets Groups Projects
Commit 043a042d authored by Markus Frank's avatar Markus Frank
Browse files

Attempt to fix nightly errors.

parent 5e30a7e0
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -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)
......
...@@ -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
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment