]>
Commit | Line | Data |
---|---|---|
3c77e1ef | 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 | set(MODULE monitorCheck) | |
17 | ||
18 | # Module include folder | |
19 | include_directories(${AliRoot_SOURCE_DIR}/MONITOR/${MODULE} | |
20 | ) | |
21 | ||
22 | # Additional include folders in alphabetical order | |
ca331a9c | 23 | include_directories(${AliRoot_SOURCE_DIR}/RAW/RAWDatarec |
3c77e1ef | 24 | ) |
25 | ||
26 | # Sources in alphabetical order | |
27 | set(SRCS | |
28 | monitorCheck.cxx | |
29 | ) | |
30 | ||
31 | # Headers from sources | |
32 | string(REPLACE ".cxx" ".h" HDRS "${SRCS}") | |
33 | ||
3c77e1ef | 34 | # Add an executable to the project using the specified source files |
35 | add_executable(${MODULE} ${SRCS}) | |
ca331a9c | 36 | target_link_libraries(${MODULE} RAWDatarec Core) |
3c77e1ef | 37 | |
ca331a9c | 38 | set(MODULE_COMPILE_FLAGS) |
39 | set(MODULE_LINK_FLAGS) | |
40 | ||
15e24252 | 41 | if(DATE_FOUND) |
42 | set(MODULE_COMPILE_FLAGS "${DATE_CFLAGS}") | |
4d31eb1c | 43 | set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${DATE_LIBS} ${DATE_DYNMONLIBS}") |
15e24252 | 44 | endif(DATE_FOUND) |
ca331a9c | 45 | |
46 | # Additional compilation and linking flags | |
68aeb13b | 47 | set(MODULE_COMPILE_FLAGS " ${MODULE_COMPILE_FLAGS}") |
ca331a9c | 48 | |
49 | # System dependent: Modify the way the library is build | |
50 | if(${CMAKE_SYSTEM} MATCHES Darwin) | |
51 | set(MODULE_LINK_FLAGS "-undefined dynamic_lookup ${MODULE_LINK_FLAGS}") | |
52 | endif(${CMAKE_SYSTEM} MATCHES Darwin) | |
53 | ||
54 | # Setting target compile and linking flags | |
55 | set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "${MODULE_COMPILE_FLAGS}") | |
56 | set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") | |
3c77e1ef | 57 | |
58 | if(ZEROMQ_FOUND) | |
59 | target_link_libraries(${MODULE} MONITORzmq) | |
60 | add_definitions(-DZMQ) | |
61 | ENDIF(ZEROMQ_FOUND) | |
62 | ||
63 | # Installation | |
64 | install(TARGETS ${MODULE} RUNTIME DESTINATION bin) |