]> granicus.if.org Git - icinga2/blob - lib/CMakeLists.txt
Fix cookie with ActivateItems
[icinga2] / lib / CMakeLists.txt
1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
2
3 add_subdirectory(base)
4 add_subdirectory(cli)
5 add_subdirectory(config)
6 add_subdirectory(remote)
7 add_subdirectory(icinga)
8 add_subdirectory(methods)
9
10 if(ICINGA2_WITH_CHECKER)
11   add_subdirectory(checker)
12 endif()
13
14 if(ICINGA2_WITH_COMPAT)
15   add_subdirectory(compat)
16 endif()
17
18 if(ICINGA2_WITH_MYSQL OR ICINGA2_WITH_PGSQL)
19   add_subdirectory(db_ido)
20 endif()
21
22 if(ICINGA2_WITH_MYSQL)
23   find_package(MySQL)
24
25   if(MYSQL_FOUND)
26     add_subdirectory(db_ido_mysql)
27     add_subdirectory(mysql_shim)
28   else()
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.")
30   endif()
31 endif()
32
33 if(ICINGA2_WITH_PGSQL)
34   find_package(PostgreSQL)
35
36   if(PostgreSQL_FOUND)
37     add_subdirectory(db_ido_pgsql)
38     add_subdirectory(pgsql_shim)
39   else()
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.")
41   endif()
42 endif()
43
44 if(ICINGA2_WITH_LIVESTATUS)
45   add_subdirectory(livestatus)
46 endif()
47
48 if(ICINGA2_WITH_NOTIFICATION)
49   add_subdirectory(notification)
50 endif()
51
52 if(ICINGA2_WITH_PERFDATA)
53   add_subdirectory(perfdata)
54 endif()
55
56 set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "${CPACK_NSIS_EXTRA_INSTALL_COMMANDS}" PARENT_SCOPE)