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