CMakeLists.txt 1.37 KB
Newer Older
1
cmake_minimum_required(VERSION 3.19)
2
3
4

# CMP0074: find_package() uses <PackageName>_ROOT variables
cmake_policy(SET CMP0074 NEW)
Sylvester Joosten's avatar
Sylvester Joosten committed
5

Sylvester Joosten's avatar
Sylvester Joosten committed
6
project(Juggler VERSION 4.1.0)
7

Whitney Armstrong's avatar
Whitney Armstrong committed
8
9
10
set(CMAKE_CXX_STANDARD 17)

find_package(EICD REQUIRED)
11
find_package(NPDet REQUIRED)
12
13
14
15
16
17

find_package(podio 0.11...0.14 REQUIRED)
add_definitions("-Dpodio_VERSION_MAJOR=${podio_VERSION_MAJOR}")
add_definitions("-Dpodio_VERSION_MINOR=${podio_VERSION_MINOR}")
add_definitions("-Dpodio_VERSION_PATCH=${podio_VERSION_PATCH}")

18
find_package(ROOT COMPONENTS Core RIO Tree MathCore GenVector Geom REQUIRED)
Whitney Armstrong's avatar
Whitney Armstrong committed
19
find_package(DD4hep COMPONENTS DDG4 DDG4IO DDRec REQUIRED)
20

21
find_package(Acts REQUIRED COMPONENTS Core PluginIdentification PluginTGeo PluginDD4hep PluginJson)
22
23
24
25
add_definitions("-DActs_VERSION_MAJOR=${Acts_VERSION_MAJOR}")
add_definitions("-DActs_VERSION_MINOR=${Acts_VERSION_MINOR}")
add_definitions("-DActs_VERSION_PATCH=${Acts_VERSION_PATCH}")

26
find_library(genfit2 genfit2 /usr/local/lib REQUIRED)
27
find_path(genfit2_INCLUDE_DIR NAMES GFGbl.h PATHS /usr/local/include ${genfit2}/../include REQUIRED)
28

29
30
31
find_package(Gaudi)
add_subdirectory(JugBase)
add_subdirectory(JugDigi)
32
33
add_subdirectory(JugFast)
add_subdirectory(JugPID)
34
35
36
add_subdirectory(JugReco)
add_subdirectory(JugTrack)
gaudi_install(CMAKE)
37

38
39
40
# create and install Juggler.xenv file as it still has a use-case
# TODO: update workflow to not need xenv files anymore
include(cmake/xenv.cmake)