]> granicus.if.org Git - icinga2/blob - lib/livestatus/CMakeLists.txt
Merge pull request #7185 from Icinga/bugfix/gelfwriter-wrong-log-facility
[icinga2] / lib / livestatus / CMakeLists.txt
1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
2
3 mkclass_target(livestatuslistener.ti livestatuslistener-ti.cpp livestatuslistener-ti.hpp)
4
5 set(livestatus_SOURCES
6   i2-livestatus.hpp
7   aggregator.cpp aggregator.hpp
8   andfilter.cpp andfilter.hpp
9   attributefilter.cpp attributefilter.hpp
10   avgaggregator.cpp avgaggregator.hpp
11   column.cpp column.hpp
12   combinerfilter.cpp combinerfilter.hpp
13   commandstable.cpp commandstable.hpp
14   commentstable.cpp commentstable.hpp
15   contactgroupstable.cpp contactgroupstable.hpp
16   contactstable.cpp contactstable.hpp
17   countaggregator.cpp countaggregator.hpp
18   downtimestable.cpp downtimestable.hpp
19   endpointstable.cpp endpointstable.hpp
20   filter.hpp
21   historytable.hpp
22   hostgroupstable.cpp hostgroupstable.hpp
23   hoststable.cpp hoststable.hpp
24   invavgaggregator.cpp invavgaggregator.hpp
25   invsumaggregator.cpp invsumaggregator.hpp
26   livestatuslistener.cpp livestatuslistener.hpp livestatuslistener-ti.hpp
27   livestatuslogutility.cpp livestatuslogutility.hpp
28   livestatusquery.cpp livestatusquery.hpp
29   logtable.cpp logtable.hpp
30   maxaggregator.cpp maxaggregator.hpp
31   minaggregator.cpp minaggregator.hpp
32   negatefilter.cpp negatefilter.hpp
33   orfilter.cpp orfilter.hpp
34   servicegroupstable.cpp servicegroupstable.hpp
35   servicestable.cpp servicestable.hpp
36   statehisttable.cpp statehisttable.hpp
37   statustable.cpp statustable.hpp
38   stdaggregator.cpp stdaggregator.hpp
39   sumaggregator.cpp sumaggregator.hpp
40   table.cpp table.hpp
41   timeperiodstable.cpp timeperiodstable.hpp
42   zonestable.cpp zonestable.hpp
43 )
44
45 if(ICINGA2_UNITY_BUILD)
46   mkunity_target(livestatus livestatus livestatus_SOURCES)
47 endif()
48
49 add_library(livestatus OBJECT ${livestatus_SOURCES})
50
51 add_dependencies(livestatus base config icinga remote)
52
53 set_target_properties (
54   livestatus PROPERTIES
55   FOLDER Components
56 )
57
58 install_if_not_exists(
59   ${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/livestatus.conf
60   ${ICINGA2_CONFIGDIR}/features-available
61 )
62
63 install(CODE "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}${ICINGA2_FULL_INITRUNDIR}/cmd\")")
64
65 set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)