From b2a53cb68658ec297d8b66f4c333a287bf70bc37 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Sun, 27 Aug 2017 14:48:05 +0200 Subject: monitoring: Add option --monitoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Installs basic interface for monitoring and add the option --monitoring / -M to activate the alias /monitoring. This makes the page /monitoring/monitor.html available. Change-Id: Iebe0959f0a5e7c396fe7ce6862d0f9c883733824 Signed-off-by: José Bollo --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a8d2d2a..eb2d2d12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,6 +112,20 @@ SET(link_libraries SET(binding_install_dir ${CMAKE_INSTALL_FULL_LIBDIR}/afb) +########################################################################### +# activates the monitoring by default +set(INCLUDE_MONITORING ON CACHE BOOL "Activates installation of monitoring") +if(INCLUDE_MONITORING) + add_definitions(-DWITH_MONITORING_OTPION) + INSTALL(DIRECTORY + ${CMAKE_CURRENT_SOURCE_DIR}/test/monitoring + DESTINATION + ${binding_install_dir} + ) +endif() + +########################################################################### + ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(include) ADD_SUBDIRECTORY(bindings) -- cgit 1.2.3-korg