]> granicus.if.org Git - icinga2/blob - lib/icinga/CMakeLists.txt
Merge pull request #6662 from Icinga/bugfix/keep-http-connection-open-until-stream-eof
[icinga2] / lib / icinga / CMakeLists.txt
1 # Icinga 2
2 # Copyright (C) 2012-2018 Icinga Development Team (https://icinga.com/)
3 #
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.
8 #
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.
13 #
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.
17
18 mkclass_target(checkable.ti checkable-ti.cpp checkable-ti.hpp)
19 mkclass_target(checkcommand.ti checkcommand-ti.cpp checkcommand-ti.hpp)
20 mkclass_target(checkresult.ti checkresult-ti.cpp checkresult-ti.hpp)
21 mkclass_target(command.ti command-ti.cpp command-ti.hpp)
22 mkclass_target(comment.ti comment-ti.cpp comment-ti.hpp)
23 mkclass_target(dependency.ti dependency-ti.cpp dependency-ti.hpp)
24 mkclass_target(downtime.ti downtime-ti.cpp downtime-ti.hpp)
25 mkclass_target(eventcommand.ti eventcommand-ti.cpp eventcommand-ti.hpp)
26 mkclass_target(hostgroup.ti hostgroup-ti.cpp hostgroup-ti.hpp)
27 mkclass_target(host.ti host-ti.cpp host-ti.hpp)
28 mkclass_target(icingaapplication.ti icingaapplication-ti.cpp icingaapplication-ti.hpp)
29 mkclass_target(customvarobject.ti customvarobject-ti.cpp customvarobject-ti.hpp)
30 mkclass_target(notificationcommand.ti notificationcommand-ti.cpp notificationcommand-ti.hpp)
31 mkclass_target(notification.ti notification-ti.cpp notification-ti.hpp)
32 mkclass_target(scheduleddowntime.ti scheduleddowntime-ti.cpp scheduleddowntime-ti.hpp)
33 mkclass_target(servicegroup.ti servicegroup-ti.cpp servicegroup-ti.hpp)
34 mkclass_target(service.ti service-ti.cpp service-ti.hpp)
35 mkclass_target(timeperiod.ti timeperiod-ti.cpp timeperiod-ti.hpp)
36 mkclass_target(usergroup.ti usergroup-ti.cpp usergroup-ti.hpp)
37 mkclass_target(user.ti user-ti.cpp user-ti.hpp)
38
39 mkembedconfig_target(icinga-itl.conf icinga-itl.cpp)
40
41 set(icinga_SOURCES
42   i2-icinga.hpp icinga-itl.cpp
43   apiactions.cpp apiactions.hpp
44   apievents.cpp apievents.hpp
45   checkable.cpp checkable.hpp checkable-ti.hpp
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-ti.hpp
50   checkresult.cpp checkresult.hpp checkresult-ti.hpp
51   cib.cpp cib.hpp
52   clusterevents.cpp clusterevents.hpp clusterevents-check.cpp
53   command.cpp command.hpp command-ti.hpp
54   comment.cpp comment.hpp comment-ti.hpp
55   compatutility.cpp compatutility.hpp
56   customvarobject.cpp customvarobject.hpp customvarobject-ti.hpp
57   dependency.cpp dependency.hpp dependency-ti.hpp dependency-apply.cpp
58   downtime.cpp downtime.hpp downtime-ti.hpp
59   eventcommand.cpp eventcommand.hpp eventcommand-ti.hpp
60   externalcommandprocessor.cpp externalcommandprocessor.hpp
61   host.cpp host.hpp host-ti.hpp
62   hostgroup.cpp hostgroup.hpp hostgroup-ti.hpp
63   icingaapplication.cpp icingaapplication.hpp icingaapplication-ti.hpp
64   legacytimeperiod.cpp legacytimeperiod.hpp
65   macroprocessor.cpp macroprocessor.hpp
66   macroresolver.hpp
67   notification.cpp notification.hpp notification-ti.hpp notification-apply.cpp
68   notificationcommand.cpp notificationcommand.hpp notificationcommand-ti.hpp
69   objectutils.cpp objectutils.hpp
70   pluginutility.cpp pluginutility.hpp
71   scheduleddowntime.cpp scheduleddowntime.hpp scheduleddowntime-ti.hpp scheduleddowntime-apply.cpp
72   service.cpp service.hpp service-ti.hpp service-apply.cpp
73   servicegroup.cpp servicegroup.hpp servicegroup-ti.hpp
74   timeperiod.cpp timeperiod.hpp timeperiod-ti.hpp
75   user.cpp user.hpp user-ti.hpp
76   usergroup.cpp usergroup.hpp usergroup-ti.hpp
77 )
78
79 if(ICINGA2_UNITY_BUILD)
80   mkunity_target(icinga icinga icinga_SOURCES)
81 endif()
82
83 add_library(icinga OBJECT ${icinga_SOURCES})
84
85 add_dependencies(icinga base config remote)
86
87 set_target_properties (
88   icinga PROPERTIES
89   FOLDER Lib
90 )