]>
Commit | Line | Data |
---|---|---|
4dd695b9 | 1 | # ************************************************************************** |
2 | # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * | |
3 | # * * | |
4 | # * Author: The ALICE Off-line Project. * | |
5 | # * Contributors are mentioned in the code where appropriate. * | |
6 | # * * | |
7 | # * Permission to use, copy, modify and distribute this software and its * | |
8 | # * documentation strictly for non-commercial purposes is hereby granted * | |
9 | # * without fee, provided that the above copyright notice appears in all * | |
10 | # * copies and that both the copyright notice and this permission notice * | |
11 | # * appear in the supporting documentation. The authors make no claims * | |
12 | # * about the suitability of this software for any purpose. It is * | |
13 | # * provided "as is" without express or implied warranty. * | |
14 | # ************************************************************************** | |
15 | ||
16 | # Module | |
17 | set(MODULE AliHLTITS) | |
18 | ||
19 | # Module include folder | |
b5a0ad8b | 20 | include_directories(${AliRoot_SOURCE_DIR}/HLT/ITS |
b5a0ad8b | 21 | ${AliRoot_SOURCE_DIR}/HLT/ITS/clusterfinders |
3c77e1ef | 22 | ${AliRoot_SOURCE_DIR}/HLT/ITS/tracking |
23 | ${AliRoot_SOURCE_DIR}/HLT/ITS/trackingSAP | |
4dd695b9 | 24 | ) |
25 | ||
26 | # Additional include folders in alphabetical order except ROOT | |
27 | include_directories(${ROOT_INCLUDE_DIRS} | |
b5a0ad8b | 28 | ${AliRoot_SOURCE_DIR}/HLT/BASE |
29 | ${AliRoot_SOURCE_DIR}/HLT/BASE/util | |
30 | ${AliRoot_SOURCE_DIR}/ITS/ITSbase | |
31 | ${AliRoot_SOURCE_DIR}/ITS/ITSrec | |
32 | ${AliRoot_SOURCE_DIR}/ITS/ITSsim | |
33 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatabase | |
34 | ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec | |
35 | ${AliRoot_SOURCE_DIR}/STEER/CDB | |
36 | ${AliRoot_SOURCE_DIR}/STEER/ESD | |
37 | ${AliRoot_SOURCE_DIR}/STEER/STEER | |
38 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
4dd695b9 | 39 | ) |
40 | ||
41 | # Sources in alphabetical order | |
42 | set(SRCS | |
43 | AliHLTITSAgent.cxx | |
44 | AliHLTITSclusterer.cxx | |
45 | AliHLTITSClusterFinderComponent.cxx | |
46 | AliHLTITSClusterHistoComponent.cxx | |
47 | AliHLTITSCompressRawDataSDDComponent.cxx | |
48 | AliHLTITSDigitPublisherComponent.cxx | |
49 | AliHLTITSQAComponent.cxx | |
50 | AliHLTITSSSDQARecPointsComponent.cxx | |
c523f228 | 51 | # AliHLTITStracker.cxx |
52 | # AliHLTITStrack.cxx | |
4dd695b9 | 53 | AliHLTITSVertexerSPDComponent.cxx |
54 | AliHLTITSVertexerZ.cxx | |
55 | clusterfinders/AliHLTITSClusterFinderSPD.cxx | |
56 | clusterfinders/AliHLTITSClusterFinderSSD.cxx | |
57 | tracking/AliHLTITSDetector.cxx | |
58 | tracking/AliHLTITSLayer.cxx | |
59 | tracking/AliHLTITSTrackerComponent.cxx | |
60 | tracking/AliHLTITSTrack.cxx | |
61 | tracking/AliITStrackerHLT.cxx | |
62 | ) | |
63 | ||
64 | # Headers from sources | |
65 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
66 | set(HDRS ${HDRS} | |
67 | AliHLTITSSpacePointData.h | |
68 | AliHLTITSClusterDataFormat.h | |
69 | ) | |
70 | ||
71 | # Generate the dictionary | |
72 | # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument | |
73 | get_directory_property(incdirs INCLUDE_DIRECTORIES) | |
74 | generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") | |
75 | ||
76 | # Generate the ROOT map | |
77 | # Dependecies | |
78 | set(LIBDEPS STEERBase STEER ESD CDB RAWDatabase RAWDatarec HLTbase AliHLTUtil ITSbase ITSrec ITSsim) | |
79 | generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") | |
80 | ||
81 | # Add a library to the project using the specified source files | |
82 | add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) | |
d2d8e21b | 83 | target_link_libraries(${MODULE} STEERBase STEER ESD CDB RAWDatabase RAWDatarec HLTbase AliHLTUtil ITSbase ITSrec ITSsim) |
4dd695b9 | 84 | |
85 | # Additional compilation flags | |
86 | set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g") | |
87 | ||
88 | # System dependent: Modify the way the library is build | |
89 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
90 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | |
91 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
92 | ||
93 | # Installation | |
94 | install(TARGETS ${MODULE} | |
95 | ARCHIVE DESTINATION lib | |
96 | LIBRARY DESTINATION lib) | |
97 | ||
c523f228 | 98 | install(FILES ${HDRS} DESTINATION include) |