2 # Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation
16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18 mkclass_target(livestatuslistener.ti livestatuslistener-ti.cpp livestatuslistener-ti.hpp)
20 set(livestatus_SOURCES
22 aggregator.cpp aggregator.hpp
23 andfilter.cpp andfilter.hpp
24 attributefilter.cpp attributefilter.hpp
25 avgaggregator.cpp avgaggregator.hpp
27 combinerfilter.cpp combinerfilter.hpp
28 commandstable.cpp commandstable.hpp
29 commentstable.cpp commentstable.hpp
30 contactgroupstable.cpp contactgroupstable.hpp
31 contactstable.cpp contactstable.hpp
32 countaggregator.cpp countaggregator.hpp
33 downtimestable.cpp downtimestable.hpp
34 endpointstable.cpp endpointstable.hpp
37 hostgroupstable.cpp hostgroupstable.hpp
38 hoststable.cpp hoststable.hpp
39 invavgaggregator.cpp invavgaggregator.hpp
40 invsumaggregator.cpp invsumaggregator.hpp
41 livestatuslistener.cpp livestatuslistener.hpp livestatuslistener-ti.hpp
42 livestatuslogutility.cpp livestatuslogutility.hpp
43 livestatusquery.cpp livestatusquery.hpp
44 logtable.cpp logtable.hpp
45 maxaggregator.cpp maxaggregator.hpp
46 minaggregator.cpp minaggregator.hpp
47 negatefilter.cpp negatefilter.hpp
48 orfilter.cpp orfilter.hpp
49 servicegroupstable.cpp servicegroupstable.hpp
50 servicestable.cpp servicestable.hpp
51 statehisttable.cpp statehisttable.hpp
52 statustable.cpp statustable.hpp
53 stdaggregator.cpp stdaggregator.hpp
54 sumaggregator.cpp sumaggregator.hpp
56 timeperiodstable.cpp timeperiodstable.hpp
57 zonestable.cpp zonestable.hpp
60 if(ICINGA2_UNITY_BUILD)
61 mkunity_target(livestatus livestatus livestatus_SOURCES)
64 add_library(livestatus OBJECT ${livestatus_SOURCES})
66 add_dependencies(livestatus base config icinga remote)
68 set_target_properties (
73 install_if_not_exists(
74 ${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/livestatus.conf
75 ${ICINGA2_CONFIGDIR}/features-available
78 install(CODE "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}${ICINGA2_FULL_INITRUNDIR}/cmd\")")
80 set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)