2019-11-02 14:00:06 +01:00
|
|
|
# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
|
2017-09-25 14:41:43 +02:00
|
|
|
|
2019-10-29 18:36:16 +01:00
|
|
|
mkclass_target(icingadb.ti icingadb-ti.cpp icingadb-ti.hpp)
|
2017-09-25 14:41:43 +02:00
|
|
|
|
2019-10-29 18:36:16 +01:00
|
|
|
set(icingadb_SOURCES
|
|
|
|
icingadb.cpp icingadb-objects.cpp icingadb-stats.cpp icingadb-utility.cpp redisconnection.cpp icingadb-ti.hpp
|
2017-09-25 14:41:43 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if(ICINGA2_UNITY_BUILD)
|
2019-10-29 18:36:16 +01:00
|
|
|
mkunity_target(icingadb icingadb icingadb_SOURCES)
|
2017-09-25 14:41:43 +02:00
|
|
|
endif()
|
|
|
|
|
2019-10-29 18:36:16 +01:00
|
|
|
add_library(icingadb OBJECT ${icingadb_SOURCES})
|
2017-09-25 14:41:43 +02:00
|
|
|
|
|
|
|
include_directories(${icinga2_SOURCE_DIR}/third-party)
|
2018-05-15 17:18:04 +02:00
|
|
|
|
2019-10-29 18:36:16 +01:00
|
|
|
add_dependencies(icingadb base config icinga remote)
|
2018-05-15 17:18:04 +02:00
|
|
|
|
2017-09-25 14:41:43 +02:00
|
|
|
set_target_properties (
|
2019-10-29 18:36:16 +01:00
|
|
|
icingadb PROPERTIES
|
2017-09-25 14:41:43 +02:00
|
|
|
FOLDER Components
|
|
|
|
)
|
|
|
|
|
|
|
|
install_if_not_exists(
|
2019-10-29 18:36:16 +01:00
|
|
|
${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/icingadb.conf
|
2017-09-25 14:41:43 +02:00
|
|
|
${CMAKE_INSTALL_SYSCONFDIR}/icinga2/features-available
|
|
|
|
)
|
|
|
|
|
2018-05-15 17:18:04 +02:00
|
|
|
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)
|