CMakeLists.txt 2.47 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# CMakeList file for library libStsSim
# Last update: V. Friese, 13.03.2020


# -----   Specify library name   --------------------------
Set(LIBRARY_NAME CbmStsSim)
# ---------------------------------------------------------


# -----  Specify sources for compilation   ----------------
set(SRCS
CbmStsDigitize.cxx
CbmStsMC.cxx
CbmStsSensorPoint.cxx
CbmStsSignal.cxx
CbmStsSimModule.cxx
CbmStsSimSensor.cxx
CbmStsSimSensorDssd.cxx
CbmStsSimSensorDssdOrtho.cxx
CbmStsSimSensorDssdStereo.cxx
CbmStsSimSensorFactory.cxx
22
23
24

qa/CbmStsDigitizeQa.cxx
qa/CbmStsDigitizeQaReport.cxx
25
26
27
28
29
30
31
32
33
34
)
# -----  End of sources   ---------------------------------



# ----  Specify include directories -----------------------
set(INCLUDE_DIRECTORIES

# --- this directory
${CBMROOT_SOURCE_DIR}/sim/detectors/sts
35
${CBMROOT_SOURCE_DIR}/sim/detectors/sts/qa
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93

# --- sts base
${CBMDETECTORBASE_DIR}/sts

# --- core/base
${CBMBASE_DIR}
${CBMBASE_DIR}/draw
${CBMBASE_DIR}/report
${CBMBASE_DIR}/utils

# --- core/data
${CBMDATA_DIR}
${CBMDATA_DIR}/base
${CBMDATA_DIR}/sts
${CBMDATA_DIR}/global

# --- sim
${CBMROOT_SOURCE_DIR}/sim/transport/base
)

set(SYSTEM_INCLUDE_DIRECTORIES
${BASE_INCLUDE_DIRECTORIES}
)
# ----  End of include directories ------------------------


# ----  Specify link directories --------------------------
set(LINK_DIRECTORIES
${ROOT_LIBRARY_DIR}
${FAIRROOT_LIBRARY_DIR}
${Boost_LIBRARY_DIRS}
)
# -----  End of link directories   ------------------------


# -----   Specify library dependences   -------------------
Set(DEPENDENCIES
    CbmBase CbmData CbmStsBase
)
# ---------------------------------------------------------


# -----  Specify LinkDef file   ---------------------------
set(LINKDEF ${LIBRARY_NAME}LinkDef.h)
# ---------------------------------------------------------


# -----  Create the library  ------------------------------
include_directories( ${INCLUDE_DIRECTORIES})
include_directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
link_directories( ${LINK_DIRECTORIES})
GENERATE_LIBRARY()
# ---------------------------------------------------------


# -----   Install headers   -------------------------------
Install(
FILES CbmStsDigitize.h
94
95
	  qa/CbmStsDigitizeQa.h
	  qa/CbmStsDigitizeQaReport.h
96
97
98
99
100
101
102
103
104
105
106
107
108
109
	  CbmStsMC.h
	  CbmStsSensorPoint.h
	  CbmStsSignal.h
	  CbmStsSimModule.h
	  CbmStsSimSensor.h
	  CbmStsSimSensorDssd.h
	  CbmStsSimSensorDssdStereo.h
	  CbmStsSimSensorDssdOrtho.h
	  CbmStsSimSensorFactory.h
	  CbmStsTrackStatus.h
DESTINATION include
)
# ---------------------------------------------------------