]> granicus.if.org Git - icinga2/blob - lib/icinga/CMakeLists.txt
Merge pull request #7002 from Icinga/bugfix/check_network-percent-6155
[icinga2] / lib / icinga / CMakeLists.txt
1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
2
3 mkclass_target(checkable.ti checkable-ti.cpp checkable-ti.hpp)
4 mkclass_target(checkcommand.ti checkcommand-ti.cpp checkcommand-ti.hpp)
5 mkclass_target(checkresult.ti checkresult-ti.cpp checkresult-ti.hpp)
6 mkclass_target(command.ti command-ti.cpp command-ti.hpp)
7 mkclass_target(comment.ti comment-ti.cpp comment-ti.hpp)
8 mkclass_target(dependency.ti dependency-ti.cpp dependency-ti.hpp)
9 mkclass_target(downtime.ti downtime-ti.cpp downtime-ti.hpp)
10 mkclass_target(eventcommand.ti eventcommand-ti.cpp eventcommand-ti.hpp)
11 mkclass_target(hostgroup.ti hostgroup-ti.cpp hostgroup-ti.hpp)
12 mkclass_target(host.ti host-ti.cpp host-ti.hpp)
13 mkclass_target(icingaapplication.ti icingaapplication-ti.cpp icingaapplication-ti.hpp)
14 mkclass_target(customvarobject.ti customvarobject-ti.cpp customvarobject-ti.hpp)
15 mkclass_target(notificationcommand.ti notificationcommand-ti.cpp notificationcommand-ti.hpp)
16 mkclass_target(notification.ti notification-ti.cpp notification-ti.hpp)
17 mkclass_target(scheduleddowntime.ti scheduleddowntime-ti.cpp scheduleddowntime-ti.hpp)
18 mkclass_target(servicegroup.ti servicegroup-ti.cpp servicegroup-ti.hpp)
19 mkclass_target(service.ti service-ti.cpp service-ti.hpp)
20 mkclass_target(timeperiod.ti timeperiod-ti.cpp timeperiod-ti.hpp)
21 mkclass_target(usergroup.ti usergroup-ti.cpp usergroup-ti.hpp)
22 mkclass_target(user.ti user-ti.cpp user-ti.hpp)
23
24 mkembedconfig_target(icinga-itl.conf icinga-itl.cpp)
25
26 set(icinga_SOURCES
27   i2-icinga.hpp icinga-itl.cpp
28   apiactions.cpp apiactions.hpp
29   apievents.cpp apievents.hpp
30   checkable.cpp checkable.hpp checkable-ti.hpp
31   checkable-check.cpp checkable-comment.cpp checkable-dependency.cpp
32   checkable-downtime.cpp checkable-event.cpp checkable-flapping.cpp
33   checkable-notification.cpp checkable-script.cpp
34   checkcommand.cpp checkcommand.hpp checkcommand-ti.hpp
35   checkresult.cpp checkresult.hpp checkresult-ti.hpp
36   cib.cpp cib.hpp
37   clusterevents.cpp clusterevents.hpp clusterevents-check.cpp
38   command.cpp command.hpp command-ti.hpp
39   comment.cpp comment.hpp comment-ti.hpp
40   compatutility.cpp compatutility.hpp
41   customvarobject.cpp customvarobject.hpp customvarobject-ti.hpp
42   dependency.cpp dependency.hpp dependency-ti.hpp dependency-apply.cpp
43   downtime.cpp downtime.hpp downtime-ti.hpp
44   eventcommand.cpp eventcommand.hpp eventcommand-ti.hpp
45   externalcommandprocessor.cpp externalcommandprocessor.hpp
46   host.cpp host.hpp host-ti.hpp
47   hostgroup.cpp hostgroup.hpp hostgroup-ti.hpp
48   icingaapplication.cpp icingaapplication.hpp icingaapplication-ti.hpp
49   legacytimeperiod.cpp legacytimeperiod.hpp
50   macroprocessor.cpp macroprocessor.hpp
51   macroresolver.hpp
52   notification.cpp notification.hpp notification-ti.hpp notification-apply.cpp
53   notificationcommand.cpp notificationcommand.hpp notificationcommand-ti.hpp
54   objectutils.cpp objectutils.hpp
55   pluginutility.cpp pluginutility.hpp
56   scheduleddowntime.cpp scheduleddowntime.hpp scheduleddowntime-ti.hpp scheduleddowntime-apply.cpp
57   service.cpp service.hpp service-ti.hpp service-apply.cpp
58   servicegroup.cpp servicegroup.hpp servicegroup-ti.hpp
59   timeperiod.cpp timeperiod.hpp timeperiod-ti.hpp
60   user.cpp user.hpp user-ti.hpp
61   usergroup.cpp usergroup.hpp usergroup-ti.hpp
62 )
63
64 if(ICINGA2_UNITY_BUILD)
65   mkunity_target(icinga icinga icinga_SOURCES)
66 endif()
67
68 add_library(icinga OBJECT ${icinga_SOURCES})
69
70 add_dependencies(icinga base config remote)
71
72 set_target_properties (
73   icinga PROPERTIES
74   FOLDER Lib
75 )