]> granicus.if.org Git - icinga2/blobdiff - lib/icinga/CMakeLists.txt
Correct current_concurrent_checks to actually running checks
[icinga2] / lib / icinga / CMakeLists.txt
index fa2801e34317f00abf7bcf6e648295ec1578460c..00951609b5a2b185db9b22f7b3ad3ac5bc01da88 100644 (file)
@@ -1,40 +1,26 @@
-# Icinga 2
-# Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation
-# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
 
-mkclass_target(checkable.ti checkable.tcpp checkable.thpp)
-mkclass_target(checkcommand.ti checkcommand.tcpp checkcommand.thpp)
-mkclass_target(checkresult.ti checkresult.tcpp checkresult.thpp)
-mkclass_target(command.ti command.tcpp command.thpp)
-mkclass_target(comment.ti comment.tcpp comment.thpp)
-mkclass_target(dependency.ti dependency.tcpp dependency.thpp)
-mkclass_target(downtime.ti downtime.tcpp downtime.thpp)
-mkclass_target(eventcommand.ti eventcommand.tcpp eventcommand.thpp)
-mkclass_target(hostgroup.ti hostgroup.tcpp hostgroup.thpp)
-mkclass_target(host.ti host.tcpp host.thpp)
-mkclass_target(icingaapplication.ti icingaapplication.tcpp icingaapplication.thpp)
-mkclass_target(customvarobject.ti customvarobject.tcpp customvarobject.thpp)
-mkclass_target(notificationcommand.ti notificationcommand.tcpp notificationcommand.thpp)
-mkclass_target(notification.ti notification.tcpp notification.thpp)
-mkclass_target(scheduleddowntime.ti scheduleddowntime.tcpp scheduleddowntime.thpp)
-mkclass_target(servicegroup.ti servicegroup.tcpp servicegroup.thpp)
-mkclass_target(service.ti service.tcpp service.thpp)
-mkclass_target(timeperiod.ti timeperiod.tcpp timeperiod.thpp)
-mkclass_target(usergroup.ti usergroup.tcpp usergroup.thpp)
-mkclass_target(user.ti user.tcpp user.thpp)
+mkclass_target(checkable.ti checkable-ti.cpp checkable-ti.hpp)
+mkclass_target(checkcommand.ti checkcommand-ti.cpp checkcommand-ti.hpp)
+mkclass_target(checkresult.ti checkresult-ti.cpp checkresult-ti.hpp)
+mkclass_target(command.ti command-ti.cpp command-ti.hpp)
+mkclass_target(comment.ti comment-ti.cpp comment-ti.hpp)
+mkclass_target(dependency.ti dependency-ti.cpp dependency-ti.hpp)
+mkclass_target(downtime.ti downtime-ti.cpp downtime-ti.hpp)
+mkclass_target(eventcommand.ti eventcommand-ti.cpp eventcommand-ti.hpp)
+mkclass_target(hostgroup.ti hostgroup-ti.cpp hostgroup-ti.hpp)
+mkclass_target(host.ti host-ti.cpp host-ti.hpp)
+mkclass_target(icingaapplication.ti icingaapplication-ti.cpp icingaapplication-ti.hpp)
+mkclass_target(customvarobject.ti customvarobject-ti.cpp customvarobject-ti.hpp)
+mkclass_target(notificationcommand.ti notificationcommand-ti.cpp notificationcommand-ti.hpp)
+mkclass_target(notificationresult.ti notificationresult-ti.cpp notificationresult-ti.hpp)
+mkclass_target(notification.ti notification-ti.cpp notification-ti.hpp)
+mkclass_target(scheduleddowntime.ti scheduleddowntime-ti.cpp scheduleddowntime-ti.hpp)
+mkclass_target(servicegroup.ti servicegroup-ti.cpp servicegroup-ti.hpp)
+mkclass_target(service.ti service-ti.cpp service-ti.hpp)
+mkclass_target(timeperiod.ti timeperiod-ti.cpp timeperiod-ti.hpp)
+mkclass_target(usergroup.ti usergroup-ti.cpp usergroup-ti.hpp)
+mkclass_target(user.ti user-ti.cpp user-ti.hpp)
 
 mkembedconfig_target(icinga-itl.conf icinga-itl.cpp)
 
@@ -42,47 +28,48 @@ set(icinga_SOURCES
   i2-icinga.hpp icinga-itl.cpp
   apiactions.cpp apiactions.hpp
   apievents.cpp apievents.hpp
-  checkable.cpp checkable.hpp checkable.thpp
+  checkable.cpp checkable.hpp checkable-ti.hpp
   checkable-check.cpp checkable-comment.cpp checkable-dependency.cpp
   checkable-downtime.cpp checkable-event.cpp checkable-flapping.cpp
   checkable-notification.cpp checkable-script.cpp
-  checkcommand.cpp checkcommand.hpp checkcommand.thpp
-  checkresult.cpp checkresult.hpp checkresult.thpp
+  checkcommand.cpp checkcommand.hpp checkcommand-ti.hpp
+  checkresult.cpp checkresult.hpp checkresult-ti.hpp
   cib.cpp cib.hpp
-  clusterevents.cpp clusterevents.hpp
-  command.cpp command.hpp command.thpp
-  comment.cpp comment.hpp comment.thpp
+  clusterevents.cpp clusterevents.hpp clusterevents-check.cpp
+  command.cpp command.hpp command-ti.hpp
+  comment.cpp comment.hpp comment-ti.hpp
   compatutility.cpp compatutility.hpp
-  customvarobject.cpp customvarobject.hpp customvarobject.thpp
-  dependency.cpp dependency.hpp dependency.thpp dependency-apply.cpp
-  downtime.cpp downtime.hpp downtime.thpp
-  eventcommand.cpp eventcommand.hpp eventcommand.thpp
+  customvarobject.cpp customvarobject.hpp customvarobject-ti.hpp
+  dependency.cpp dependency.hpp dependency-ti.hpp dependency-apply.cpp
+  downtime.cpp downtime.hpp downtime-ti.hpp
+  eventcommand.cpp eventcommand.hpp eventcommand-ti.hpp
   externalcommandprocessor.cpp externalcommandprocessor.hpp
-  host.cpp host.hpp host.thpp
-  hostgroup.cpp hostgroup.hpp hostgroup.thpp
-  icingaapplication.cpp icingaapplication.hpp icingaapplication.thpp
+  host.cpp host.hpp host-ti.hpp
+  hostgroup.cpp hostgroup.hpp hostgroup-ti.hpp
+  icingaapplication.cpp icingaapplication.hpp icingaapplication-ti.hpp
   legacytimeperiod.cpp legacytimeperiod.hpp
   macroprocessor.cpp macroprocessor.hpp
   macroresolver.hpp
-  notification.cpp notification.hpp notification.thpp notification-apply.cpp
-  notificationcommand.cpp notificationcommand.hpp notificationcommand.thpp
+  notification.cpp notification.hpp notification-ti.hpp notification-apply.cpp
+  notificationcommand.cpp notificationcommand.hpp notificationcommand-ti.hpp
+  notificationresult.cpp notificationresult.hpp notificationresult-ti.hpp
   objectutils.cpp objectutils.hpp
   pluginutility.cpp pluginutility.hpp
-  scheduleddowntime.cpp scheduleddowntime.hpp scheduleddowntime.thpp scheduleddowntime-apply.cpp
-  service.cpp service.hpp service.thpp service-apply.cpp
-  servicegroup.cpp servicegroup.hpp servicegroup.thpp
-  timeperiod.cpp timeperiod.hpp timeperiod.thpp
-  user.cpp user.hpp user.thpp
-  usergroup.cpp usergroup.hpp usergroup.thpp
+  scheduleddowntime.cpp scheduleddowntime.hpp scheduleddowntime-ti.hpp scheduleddowntime-apply.cpp
+  service.cpp service.hpp service-ti.hpp service-apply.cpp
+  servicegroup.cpp servicegroup.hpp servicegroup-ti.hpp
+  timeperiod.cpp timeperiod.hpp timeperiod-ti.hpp
+  user.cpp user.hpp user-ti.hpp
+  usergroup.cpp usergroup.hpp usergroup-ti.hpp
 )
 
 if(ICINGA2_UNITY_BUILD)
-    mkunity_target(icinga icinga icinga_SOURCES)
+  mkunity_target(icinga icinga icinga_SOURCES)
 endif()
 
-add_library(icinga STATIC ${icinga_SOURCES})
+add_library(icinga OBJECT ${icinga_SOURCES})
 
-target_link_libraries(icinga ${Boost_LIBRARIES} base config remote)
+add_dependencies(icinga base config remote)
 
 set_target_properties (
   icinga PROPERTIES