]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/CMakeLists.txt
AliHLTSample module
[u/mrichter/AliRoot.git] / HLT / CMakeLists.txt
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 option(HLT_CUDA   "Build HLT GPU tracker using CUDA"   OFF)
17 option(HLT_OPENCL "Build HLT GPU tracker using OpenCL" OFF)
18
19 add_definitions(-Duse_aliroot -Duse_root -DROWHOUGHPARAMS)
20
21 # AliRoot debug mode
22 if(ALIDEBUG)
23     add_definitions(-DDEBUG -D__DEBUG)
24 else()
25     add_definitions(-DNDEBUG)
26 endif (ALIDEBUG)
27
28 # MLUC
29 if(ALIHLT_MLUCDIR)
30     add_definitions(-Duse_logging)
31     include_directories(${ALIHLT_MLUCDIR}/include)
32     link_directories(${ALIHLT_MLUCDIR}/lib/tgt_${ALICE_TARGET})
33 endif (ALIHLT_MLUCDIR) 
34
35 add_subdirectory(BASE)
36 add_subdirectory(CALO)
37 add_subdirectory(comp)
38 add_subdirectory(global)
39 add_subdirectory(EMCAL)
40 add_subdirectory(FMD)
41 add_subdirectory(ITS)
42 add_subdirectory(JET)
43 add_subdirectory(MUON)
44 add_subdirectory(PHOS)
45 add_subdirectory(RCU)
46 add_subdirectory(SampleLib)
47 # Enable EVE if ROOT has OpenGL support
48 if(ROOT_HASOPENGL STREQUAL "yes")
49     add_subdirectory(EVE)
50 endif()
51
52
53 #file(GLOB PACKAGES CMake*.pkg)
54
55 #if(HLT_CUDA)
56 #  list(APPEND PACKAGES TPCLib/tracking-ca/cagpu/CMakelibAliHLTTPCCAGPU.pkg)
57 #endif(HLT_CUDA)
58
59 #if(HLT_OPENCL)
60 #  list(APPEND PACKAGES TPCLib/tracking-ca/cagpu/CMakelibAliHLTTPCCAGPUOpenCL.pkg)
61 #endif()
62
63 message(STATUS "HLT enabled")