1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
3 mkclass_target(idomysqlconnection.ti idomysqlconnection-ti.cpp idomysqlconnection-ti.hpp)
5 set(db_ido_mysql_SOURCES
6 idomysqlconnection.cpp idomysqlconnection.hpp idomysqlconnection-ti.hpp
9 if(ICINGA2_UNITY_BUILD)
10 mkunity_target(db_ido_mysql db_ido_mysql db_ido_mysql_SOURCES)
13 add_library(db_ido_mysql OBJECT ${db_ido_mysql_SOURCES})
15 include_directories(${MYSQL_INCLUDE_DIR})
17 add_dependencies(db_ido_mysql base config icinga db_ido)
19 set_target_properties (
20 db_ido_mysql PROPERTIES
24 install_if_not_exists(
25 ${PROJECT_SOURCE_DIR}/etc/icinga2/features-available/ido-mysql.conf
26 ${ICINGA2_CONFIGDIR}/features-available
31 DESTINATION ${CMAKE_INSTALL_DATADIR}/icinga2-ido-mysql
32 FILES_MATCHING PATTERN "*.sql"
36 DIRECTORY schema/upgrade
37 DESTINATION ${CMAKE_INSTALL_DATADIR}/icinga2-ido-mysql/schema
38 FILES_MATCHING PATTERN "*.sql"
41 set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)