This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
49 lines (39 loc) · 1.89 KB
/
CMakeLists.txt
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
# Set the minimum version of CMake that's required
cmake_minimum_required(VERSION 3.12)
# Set the project name
project(TrigScint VERSION 2.1.0
DESCRIPTION "Module for all things trigger scintillator."
LANGUAGES CXX
)
# Search and configure ROOT
find_package(ROOT CONFIG REQUIRED)
option(BUILD_EVENT_ONLY "Build the event library." ON)
if(BUILD_EVENT_ONLY)
register_event_object( module_path "TrigScint/Event" namespace "ldmx"
class "TrigScintHit" type "collection" )
register_event_object( module_path "TrigScint/Event" namespace "trigscint"
class "TrigScintQIEDigis" type "collection" )
register_event_object( module_path "TrigScint/Event" namespace "trigscint"
class "QIEStream" type "collection" )
register_event_object( module_path "TrigScint/Event" namespace "trigscint"
class "EventReadout" type "collection" )
register_event_object( module_path "TrigScint/Event" namespace "trigscint"
class "TestBeamHit" type "collection" )
register_event_object( module_path "TrigScint/Event" namespace "ldmx"
class "TrigScintCluster" type "collection" )
register_event_object( module_path "TrigScint/Event" namespace "ldmx"
class "TrigScintTrack" type "collection" )
# Generate the files needed to build the event classes.
setup_library(module TrigScint name Event
dependencies ROOT::Core
Hcal::Event
TrigScint::Event
Recon::Event
register_target)
return()
endif()
setup_library(module TrigScint
dependencies Framework::Framework Recon::Event DetDescr::DetDescr
Tools::Tools SimCore::Event
)
setup_python(package_name ${PYTHON_PACKAGE_NAME}/TrigScint)