CMake: Using FindDIM to set include path and linking library
[u/mrichter/AliRoot.git] / MONITOR / deroot / 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 deroot)
17
18# Module include folder
19include_directories(${AliRoot_SOURCE_DIR}/MONITOR/${MODULE}
20 )
21
22# Additional include folders in alphabetical order
23include_directories(${AliRoot_SOURCE_DIR}/RAW/RAWDatabase
24 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
25 )
26
27# Sources in alphabetical order
28set(SRCS
29 deroot.cxx
30 root2date.cxx
31 )
32
33# Headers from sources
34string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
35
3c77e1ef 36# Add an executable to the project using the specified source files
37add_executable(${MODULE} ${SRCS})
38target_link_libraries(${MODULE} STEERBase RAWDatabase)
39
3c77e1ef 40if(ZEROMQ_FOUND)
41 target_link_libraries(${MODULE} MONITORzmq)
42 add_definitions(-DZMQ)
43ENDIF(ZEROMQ_FOUND)
44
45# Installation
46install(TARGETS ${MODULE} RUNTIME DESTINATION bin)