-# -*- 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()