CMake: Using FindDIM to set include path and linking library
[u/mrichter/AliRoot.git] / MONITOR / alistoragemanager / CMakeLists.txt
CommitLineData
6b30c614 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 include folder
17include_directories(${AliRoot_SOURCE_DIR}/MONITOR/alistoragemanager
18 )
19
20# Additional include folders in alphabetical order
21include_directories(${AliRoot_SOURCE_DIR}/MONITOR/MONITOR
22 ${AliRoot_SOURCE_DIR}/MONITOR/MONITORzmq
23 ${AliRoot_SOURCE_DIR}/STEER/ESD
24 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
25 )
26
27add_definitions(-DZMQ)
28
6b30c614 29# alistorage executable
30add_executable(alistorage alistorage.cxx)
31target_link_libraries(alistorage MONITOR MONITORzmq)
32if(PYTHIA6)
33 target_link_libraries(alistorage EVGEN HepMC HepMCParser)
34endif(PYTHIA6)
35
36# Installation
37install(TARGETS alistorage RUNTIME DESTINATION bin)
38
48246066 39# Header files: set
40set(HDRS
41 AliStorageTypes.h
42 )
43
44# Header files: install
45install(FILES ${HDRS} DESTINATION include)
6b30c614 46
47# alistorageadmin executable
48add_executable(alistorageadmin alistorageadmin.cxx)
49target_link_libraries(alistorageadmin MONITOR MONITORzmq)
50if(PYTHIA6)
51 target_link_libraries(alistorageadmin EVGEN HepMC HepMCParser)
52endif(PYTHIA6)
53
54# Installation
55install(TARGETS alistorageadmin RUNTIME DESTINATION bin)
56
57
58# alifakedisplay executable
59add_executable(alifakedisplay alifakedisplay.cxx)
60target_link_libraries(alifakedisplay MONITOR MONITORzmq)
61if(PYTHIA6)
62 target_link_libraries(alifakedisplay EVGEN HepMC HepMCParser)
63endif(PYTHIA6)
64
65# Installation
66install(TARGETS alifakedisplay RUNTIME DESTINATION bin)
67
68
69# alistorageminimalexample executable
70add_executable(alistorageminimalexample alistorageminimalexample.cxx)
71target_link_libraries(alistorageminimalexample MONITOR MONITORzmq)
72if(PYTHIA6)
73 target_link_libraries(alistorageminimalexample EVGEN HepMC HepMCParser)
74endif(PYTHIA6)
75
76# Installation
77install(TARGETS alistorageminimalexample RUNTIME DESTINATION bin)
78
79
80# alistoragegetpoints executable
81add_executable(alistoragegetpoints alistoragegetpoints.cxx)
82target_link_libraries(alistoragegetpoints MONITOR MONITORzmq XMLIO)
83if(PYTHIA6)
84 target_link_libraries(alistoragegetpoints EVGEN HepMC HepMCParser)
85endif(PYTHIA6)
86
87# Installation
88install(TARGETS alistoragegetpoints RUNTIME DESTINATION bin)