2013-11-03 13:45:26 +01:00
|
|
|
# Icinga 2
|
2014-03-19 01:02:29 +01:00
|
|
|
# Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org)
|
2013-11-03 13:45:26 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2014-04-03 15:36:13 +02:00
|
|
|
mkclass_target(checkable.ti checkable.th)
|
2013-11-03 13:45:26 +01:00
|
|
|
mkclass_target(checkcommand.ti checkcommand.th)
|
2013-11-09 14:22:38 +01:00
|
|
|
mkclass_target(checkresult.ti checkresult.th)
|
2013-11-03 13:45:26 +01:00
|
|
|
mkclass_target(command.ti command.th)
|
2013-11-09 21:19:52 +01:00
|
|
|
mkclass_target(comment.ti comment.th)
|
2014-02-27 11:05:55 +01:00
|
|
|
mkclass_target(dependency.ti dependency.th)
|
2013-11-03 13:45:26 +01:00
|
|
|
mkclass_target(domain.ti domain.th)
|
2013-11-09 22:08:26 +01:00
|
|
|
mkclass_target(downtime.ti downtime.th)
|
2013-11-03 13:45:26 +01:00
|
|
|
mkclass_target(eventcommand.ti eventcommand.th)
|
|
|
|
mkclass_target(hostgroup.ti hostgroup.th)
|
|
|
|
mkclass_target(host.ti host.th)
|
|
|
|
mkclass_target(icingaapplication.ti icingaapplication.th)
|
2014-02-17 18:51:16 +01:00
|
|
|
mkclass_target(icingastatuswriter.ti icingastatuswriter.th)
|
2013-11-03 13:45:26 +01:00
|
|
|
mkclass_target(notificationcommand.ti notificationcommand.th)
|
|
|
|
mkclass_target(notification.ti notification.th)
|
2013-11-07 13:37:58 +01:00
|
|
|
mkclass_target(perfdatavalue.ti perfdatavalue.th)
|
2013-11-13 14:56:31 +01:00
|
|
|
mkclass_target(scheduleddowntime.ti scheduleddowntime.th)
|
2013-11-03 13:45:26 +01:00
|
|
|
mkclass_target(servicegroup.ti servicegroup.th)
|
|
|
|
mkclass_target(service.ti service.th)
|
|
|
|
mkclass_target(timeperiod.ti timeperiod.th)
|
|
|
|
mkclass_target(usergroup.ti usergroup.th)
|
|
|
|
mkclass_target(user.ti user.th)
|
|
|
|
|
|
|
|
mkembedconfig_target(icinga-type.conf icinga-type.cpp)
|
|
|
|
|
|
|
|
add_library(icinga SHARED
|
2014-04-23 10:35:10 +02:00
|
|
|
api.cpp checkable.cpp checkable.th checkable-dependency.cpp checkable-downtime.cpp checkable-event.cpp
|
|
|
|
checkable-flapping.cpp checkcommand.cpp checkcommand.th checkresult.cpp checkresult.th
|
|
|
|
cib.cpp command.cpp command.th comment.cpp comment.th compatutility.cpp dependency.cpp dependency.th
|
|
|
|
dependency-apply.cpp domain.cpp domain.th downtime.cpp downtime.th eventcommand.cpp eventcommand.th
|
|
|
|
externalcommandprocessor.cpp host.cpp host.th hostgroup.cpp hostgroup.th
|
|
|
|
icingaapplication.cpp icingaapplication.th icingastatuswriter.cpp
|
|
|
|
icingastatuswriter.th legacytimeperiod.cpp
|
|
|
|
macroprocessor.cpp macroresolver.cpp notificationcommand.cpp notificationcommand.th
|
|
|
|
notification.cpp notification.th notification-apply.cpp perfdatavalue.cpp perfdatavalue.th
|
|
|
|
pluginutility.cpp scheduleddowntime.cpp scheduleddowntime.th scheduleddowntime-apply.cpp
|
|
|
|
service-apply.cpp checkable-check.cpp checkable-comment.cpp service.cpp service.th
|
|
|
|
servicegroup.cpp servicegroup.th checkable-notification.cpp timeperiod.cpp timeperiod.th user.cpp user.th
|
|
|
|
usergroup.cpp usergroup.th icinga-type.cpp
|
2013-11-03 13:45:26 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(icinga ${Boost_LIBRARIES} base config)
|
|
|
|
|
|
|
|
set_target_properties (
|
|
|
|
icinga PROPERTIES
|
|
|
|
INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/icinga2
|
|
|
|
DEFINE_SYMBOL I2_ICINGA_BUILD
|
|
|
|
FOLDER Lib
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS icinga
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/icinga2
|
|
|
|
)
|
|
|
|
|
|
|
|
|