1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
5 add_subdirectory(config)
6 add_subdirectory(remote)
7 add_subdirectory(icinga)
8 add_subdirectory(methods)
10 if(ICINGA2_WITH_CHECKER)
11 add_subdirectory(checker)
14 if(ICINGA2_WITH_COMPAT)
15 add_subdirectory(compat)
18 if(ICINGA2_WITH_MYSQL OR ICINGA2_WITH_PGSQL)
19 add_subdirectory(db_ido)
22 if(ICINGA2_WITH_MYSQL)
26 add_subdirectory(db_ido_mysql)
27 add_subdirectory(mysql_shim)
29 message(FATAL_ERROR "You have selected MySQL support, but MySQL could not be found. You can disable the MySQL IDO module using -DICINGA2_WITH_MYSQL=OFF.")
33 if(ICINGA2_WITH_PGSQL)
34 find_package(PostgreSQL)
37 add_subdirectory(db_ido_pgsql)
38 add_subdirectory(pgsql_shim)
40 message(FATAL_ERROR "You have selected PostgreSQL support, but PostgreSQL could not be found. You can disable the PostgreSQL IDO module using -DICINGA2_WITH_PGSQL=OFF.")
44 if(ICINGA2_WITH_LIVESTATUS)
45 add_subdirectory(livestatus)
48 if(ICINGA2_WITH_NOTIFICATION)
49 add_subdirectory(notification)
52 if(ICINGA2_WITH_PERFDATA)
53 add_subdirectory(perfdata)
56 set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)