1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
3 mkclass_target(notificationcomponent.ti notificationcomponent-ti.cpp notificationcomponent-ti.hpp)
5 set(notification_SOURCES
6 notificationcomponent.cpp notificationcomponent.hpp notificationcomponent-ti.hpp
9 if(ICINGA2_UNITY_BUILD)
10 mkunity_target(notification notification notification_SOURCES)
13 add_library(notification OBJECT ${notification_SOURCES})
15 add_dependencies(notification base config icinga)
17 set_target_properties (
18 notification PROPERTIES
22 install_if_not_exists(
23 ${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/notification.conf
24 ${ICINGA2_CONFIGDIR}/features-available
28 install(CODE "file(MAKE_DIRECTORY \"\$ENV{DESTDIR}${ICINGA2_FULL_CONFIGDIR}/features-enabled\")")
29 install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink ../features-available/notification.conf \"\$ENV{DESTDIR}${ICINGA2_FULL_CONFIGDIR}/features-enabled/notification.conf\")")
31 install_if_not_exists(${PROJECT_SOURCE_DIR}/etc/icinga2/features-enabled/notification.conf ${ICINGA2_CONFIGDIR}/features-enabled)
34 set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)