]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/CMakeLists.txt
Merge remote-tracking branch 'origin/master' into mergingFlat
[u/mrichter/AliRoot.git] / MONITOR / CMakeLists.txt
index 08be42ad71856b17fa067841ca6eb8ce166f7dd6..faaf3e2ea1f8826930c97d52af7f9ec7c7917ec4 100644 (file)
@@ -1,32 +1,30 @@
-# -*- mode: cmake -*-
-# Create a library called "lib<name>" which includes the source files given in
-# the array .
-# The extension is already found.  Any number of sources could be listed here.
+# AliRoot Build System CMakeLists for MONITOR
+#
+# Author: Johny Jose m(johny.jose@cern.ch)
+#         Port of previous Makefile build to cmake
 
-set(INCLUDE_DIRECTORIES
-${CMAKE_SOURCE_DIR}/MONITOR
-${CMAKE_SOURCE_DIR}/STEER
-${CMAKE_SOURCE_DIR}/RAW
-${CMAKE_SOURCE_DIR}/ITS
-${CMAKE_SOURCE_DIR}/TPC
-${ROOT_INCLUDE_DIR}
-)
-
-include_directories( ${INCLUDE_DIRECTORIES})
-
-set(LINK_DIRECTORIES
-${ROOT_LIBRARY_DIR}
-) 
-
-link_directories( ${LINK_DIRECTORIES})
+cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
 
-SetModule()
+# This will only build MONITOR only if ZeroMQ is found
 
-include(CMake_libMONITOR.txt)
-
-include(CMake_binmonitorCheck.txt)
-
-include(CMake_binmonitorGDC.txt)
+set (PACKAGES
+  CMakelibMONITOR.pkg
+  alitestproc/CMakebinalitestproc.pkg
+  deroot/CMakebinderoot.pkg
+  monitorCheck/CMakebinmonitorCheck.pkg
+  monitorGDC/CMakebinmonitorGDC.pkg 
+)
 
-include(CMake_binderoot.txt)
+if(ZEROMQ_FOUND)
+set(PACKAGES "${PACKAGES}"
+  CMakelibMONITORzmq.pkg
+  alistoragemanager/CMakebinalistorage.pkg
+  alistoragemanager/CMakebinalistorageadmin.pkg
+  alistoragemanager/CMakebinalifakedisplay.pkg
+  alistoragemanager/CMakebinalistorageminimalexample.pkg
+  alistoragemanager/CMakebinalistoragegetpoints.pkg
+  alieventserver/CMakebinalieventserver.pkg
+)
+ENDIF(ZEROMQ_FOUND)
 
+ALICE_BuildModule()