forked from wilkinson-nu/edep-sim
-
Notifications
You must be signed in to change notification settings - Fork 3
/
PackageConfig.cmake.in
54 lines (48 loc) · 1.78 KB
/
PackageConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
##########################
# A template for a <package>Config.cmake that can be found by using
# the find_package macro. This should be modified to import all of
# the dependencies required by the local package. The template is
# fairly generic, except for the "find_package" related code between
# the beginning and ending boiler plate.
#
# This expect that any targets that are being exported will be
# installed using a command like
#
# install(TARGETS myTarget
# EXPORT <project>Targets
# etc)
#
# Note that the <project> is set in the project(<name> <version>) macro
# that should be at the start of your top level CMakeLists.txt
##########################
############# BOILER PLATE
# Include the cmake boiler plate. The next line should not be touched
@PACKAGE_INIT@
############# END BOILER PLATE
##########################
# Add any specific packages that the current package depends on. This is
# where the find_package commands needed to make the current package
# compile should be listed.
##########################
# EDepSim requires ROOT
find_package(ROOT REQUIRED
COMPONENTS Geom Physics Matrix MathCore Tree RIO)
if(ROOT_FOUND)
include(${ROOT_USE_FILE})
endif(ROOT_FOUND)
# EDepSim needs GEANT4 if EDEPSIM_READONLY is not set to TRUE (usually it's
# TRUE).
if(NOT @EDEPSIM_READONLY@)
find_package(Geant4 @Geant4_VERSION@ REQUIRED)
if(Geant4_FOUND)
include(${Geant4_USE_FILE})
endif(Geant4_FOUND)
endif(NOT @EDEPSIM_READONLY@)
#########################
# Leave the next couple of lines alone since it will automatically customize
# for your package.
#########################
############# BOILER PLATE
include("@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/@[email protected]")
check_required_components("@PROJECT_NAME@")
############# END BOILER PLATE