]>
Commit | Line | Data |
---|---|---|
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 | |
17 | include_directories(${AliRoot_SOURCE_DIR}/MONITOR/alionlinereco | |
18 | ) | |
19 | ||
20 | # Additional include folders in alphabetical order | |
21 | include_directories(${AliRoot_SOURCE_DIR}/MONITOR/MONITOR | |
22 | ${AliRoot_SOURCE_DIR}/MONITOR/MONITORzmq | |
23 | ${AliRoot_SOURCE_DIR}/STEER/CDB | |
24 | ${AliRoot_SOURCE_DIR}/STEER/STEER | |
25 | ${AliRoot_SOURCE_DIR}/STEER/STEERBase | |
26 | ) | |
27 | ||
28 | add_definitions(-DZMQ) | |
29 | ||
6b30c614 | 30 | # alistorage executable |
31 | add_executable(alionlinereco onlinereco.cxx) | |
32 | target_link_libraries(alionlinereco MONITOR MONITORzmq STEERBase STEER) | |
ca331a9c | 33 | |
34 | set(MODULE_COMPILE_FLAGS) | |
35 | set(MODULE_LINK_FLAGS) | |
36 | ||
37 | if(DATE_FOUND) | |
38 | set(MODULE_COMPILE_FLAGS "${DATE_CFLAGS}") | |
39 | set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${DATE_LIBS}") | |
40 | endif(DATE_FOUND) | |
41 | ||
42 | # Additional compilation and linking flags | |
68aeb13b | 43 | set(MODULE_COMPILE_FLAGS " ${MODULE_COMPILE_FLAGS}") |
ca331a9c | 44 | |
45 | # System dependent: Modify the way the library is build | |
46 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
47 | set(MODULE_LINK_FLAGS "-undefined dynamic_lookup ${MODULE_LINK_FLAGS}") | |
48 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
49 | ||
50 | # Setting target compile and linking flags | |
51 | set_target_properties(alionlinereco PROPERTIES COMPILE_FLAGS "${MODULE_COMPILE_FLAGS}") | |
52 | set_target_properties(alionlinereco PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
53 | ||
6b30c614 | 54 | if(PYTHIA6) |
55 | target_link_libraries(alionlinereco EVGEN HepMC HepMCParser) | |
56 | endif(PYTHIA6) | |
57 | ||
58 | # Installation | |
59 | install(TARGETS alionlinereco RUNTIME DESTINATION bin) | |
b9633b16 | 60 | install(FILES onlinereco.conf DESTINATION MONITOR/alionlinereco) |
6b30c614 | 61 | |
62 |