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(checkable.ti checkable.tcpp checkable.thpp)
19 mkclass_target(checkcommand.ti checkcommand.tcpp checkcommand.thpp)
20 mkclass_target(checkresult.ti checkresult.tcpp checkresult.thpp)
21 mkclass_target(command.ti command.tcpp command.thpp)
22 mkclass_target(comment.ti comment.tcpp comment.thpp)
23 mkclass_target(dependency.ti dependency.tcpp dependency.thpp)
24 mkclass_target(downtime.ti downtime.tcpp downtime.thpp)
25 mkclass_target(eventcommand.ti eventcommand.tcpp eventcommand.thpp)
26 mkclass_target(hostgroup.ti hostgroup.tcpp hostgroup.thpp)
27 mkclass_target(host.ti host.tcpp host.thpp)
28 mkclass_target(icingaapplication.ti icingaapplication.tcpp icingaapplication.thpp)
29 mkclass_target(customvarobject.ti customvarobject.tcpp customvarobject.thpp)
30 mkclass_target(notificationcommand.ti notificationcommand.tcpp notificationcommand.thpp)
31 mkclass_target(notification.ti notification.tcpp notification.thpp)
32 mkclass_target(scheduleddowntime.ti scheduleddowntime.tcpp scheduleddowntime.thpp)
33 mkclass_target(servicegroup.ti servicegroup.tcpp servicegroup.thpp)
34 mkclass_target(service.ti service.tcpp service.thpp)
35 mkclass_target(timeperiod.ti timeperiod.tcpp timeperiod.thpp)
36 mkclass_target(usergroup.ti usergroup.tcpp usergroup.thpp)
37 mkclass_target(user.ti user.tcpp user.thpp)
39 mkembedconfig_target(icinga-itl.conf icinga-itl.cpp)
42 i2-icinga.hpp icinga-itl.cpp
43 apiactions.cpp apiactions.hpp
44 apievents.cpp apievents.hpp
45 checkable.cpp checkable.hpp checkable.thpp
46 checkable-check.cpp checkable-comment.cpp checkable-dependency.cpp
47 checkable-downtime.cpp checkable-event.cpp checkable-flapping.cpp
48 checkable-notification.cpp checkable-script.cpp
49 checkcommand.cpp checkcommand.hpp checkcommand.thpp
50 checkresult.cpp checkresult.hpp checkresult.thpp
52 clusterevents.cpp clusterevents.hpp
53 command.cpp command.hpp command.thpp
54 comment.cpp comment.hpp comment.thpp
55 compatutility.cpp compatutility.hpp
56 customvarobject.cpp customvarobject.hpp customvarobject.thpp
57 dependency.cpp dependency.hpp dependency.thpp dependency-apply.cpp
58 downtime.cpp downtime.hpp downtime.thpp
59 eventcommand.cpp eventcommand.hpp eventcommand.thpp
60 externalcommandprocessor.cpp externalcommandprocessor.hpp
61 host.cpp host.hpp host.thpp
62 hostgroup.cpp hostgroup.hpp hostgroup.thpp
63 icingaapplication.cpp icingaapplication.hpp icingaapplication.thpp
64 legacytimeperiod.cpp legacytimeperiod.hpp
65 macroprocessor.cpp macroprocessor.hpp
67 notification.cpp notification.hpp notification.thpp notification-apply.cpp
68 notificationcommand.cpp notificationcommand.hpp notificationcommand.thpp
69 objectutils.cpp objectutils.hpp
70 pluginutility.cpp pluginutility.hpp
71 scheduleddowntime.cpp scheduleddowntime.hpp scheduleddowntime.thpp scheduleddowntime-apply.cpp
72 service.cpp service.hpp service.thpp service-apply.cpp
73 servicegroup.cpp servicegroup.hpp servicegroup.thpp
74 timeperiod.cpp timeperiod.hpp timeperiod.thpp
75 user.cpp user.hpp user.thpp
76 usergroup.cpp usergroup.hpp usergroup.thpp
79 if(ICINGA2_UNITY_BUILD)
80 mkunity_target(icinga icinga icinga_SOURCES)
83 add_library(icinga OBJECT ${icinga_SOURCES})
85 add_dependencies(icinga base config remote)
87 set_target_properties (