1 macro_optional_find_package(OpenSSL)
2 macro_log_feature(OPENSSL_FOUND "OpenSSL" "A toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols" "http://openssl.org" FALSE "" "Required for the Kopete Gadu-Gadu protocol.")
4 # On Solaris, some of the name resolution functions are in libnsl;
5 # this needs to be linked in if found. Copied from kdelibs.
6 check_library_exists(nsl gethostbyname "" HAVE_NSL_LIBRARY)
8 option(WITH_testbed "Enable Kopete testbed protocol" ON)
9 option(WITH_messenger "Enable Kopete MSN/Windows Live Messenger protocol" OFF)
10 option(WITH_msn "Enable Kopete MSN protocol" OFF)
11 option(WITH_oscar "Enable Kopete Oscar (ICQ and AIM) protocol" ON)
12 option(WITH_yahoo "Enable Kopete Yahoo protocol" ON)
13 option(WITH_qq "Enable Kopete QQ protocol" ON)
14 option(WITH_sms "Enable Kopete SMS protocol" ON)
15 option(WITH_groupwise "Enable Novell GroupWise Messenger protocol" ON)
16 option(WITH_telepathy "Enable Telepathy testbed protocol" OFF)
17 option(WITH_winpopup "Enable Kopete winpopup protocol" ON)
18 option(WITH_gadu "Enable Kopete Gadu-Gadu protocol" ON)
19 option(WITH_jabber "Enable Kopete Jabber protocol" ON)
20 option(WITH_bonjour "Enable Kopete Bonjour protocol" ON)
21 option(WITH_irc "Enable Kopete IRC protocol" OFF)
22 option(WITH_wlm "Enable Window Live Messenger support" ON)
23 option(WITH_meanwhile "Enable Kopete meanwhile protocol" ON)
25 include_directories(${KOPETE_INCLUDES})
27 if(WITH_wlm AND LIBMSN_FOUND)
28 add_subdirectory( wlm )
29 endif(WITH_wlm AND LIBMSN_FOUND)
32 add_subdirectory( msn )
35 add_subdirectory( oscar )
38 add_subdirectory( yahoo )
41 add_subdirectory( qq )
44 message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: WARNING: Building the irc plugin, even if it hasn't been completely ported yet")
45 add_subdirectory( irc )
49 add_subdirectory( winpopup )
51 if(WITH_gadu AND OPENSSL_FOUND)
52 add_subdirectory( gadu )
53 endif(WITH_gadu AND OPENSSL_FOUND)
55 add_subdirectory( sms )
60 add_subdirectory( messenger )
66 add_subdirectory( jabber )
69 message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled Jabber because libidn-devel was not found")
72 add_subdirectory( groupwise )
75 message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled GroupWise and Jabber because QCA2 was not found")
79 add_subdirectory( testbed )
82 if(WITH_telepathy AND DECIBEL_FOUND)
83 add_subdirectory( telepathy )
84 endif(WITH_telepathy AND DECIBEL_FOUND)
87 add_subdirectory( bonjour )
91 if(LIBMEANWHILE_FOUND)
92 add_subdirectory( meanwhile )
93 else(LIBMEANWHILE_FOUND)
94 message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled Meanwhile beause libmeanwhile was not found")
95 endif(LIBMEANWHILE_FOUND)