]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MONITOR/alitestproc/CMakeLists.txt
37f5ee3e37efd99103b2b712faecac0381e4bc83
[u/mrichter/AliRoot.git] / MONITOR / alitestproc / 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 set(MODULE alitestproc)
17
18 # Module include folder
19 include_directories(${AliRoot_SOURCE_DIR}/MONITOR/alitestproc
20                    )
21
22 # Additional include folders in alphabetical order
23 include_directories(${AliRoot_SOURCE_DIR}/MONITOR/MONITOR
24                    )
25
26 # Sources in alphabetical order
27 set(SRCS
28     alitestproc.cxx
29    )
30
31 # Headers from sources
32 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
33
34 if(DIMDIR AND ODIR)
35     link_directories(${DIMDIR}/${ODIR})
36 endif()
37
38 # Add an executable to the project using the specified source files
39 add_executable(${MODULE} ${SRCS})
40 target_link_libraries(${MODULE} MONITOR Rint)
41
42 if(DATE_FOUND)
43     target_link_libraries(${MODULE} ${DATE_MONLIBS})
44 endif()
45
46 if(ZEROMQ_FOUND)
47     target_link_libraries(${MODULE} MONITORzmq)
48     add_definitions(-DZMQ)
49 ENDIF(ZEROMQ_FOUND)
50
51 # Installation
52 install(TARGETS ${MODULE} RUNTIME DESTINATION bin)