Port things from MSN to WLM plugin:
[kdenetwork.git] / kopete / protocols / CMakeLists.txt
blob8c8e046540e71aced0dd8eb9f67233dd7868febe
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)
31 if(WITH_msn)
32   add_subdirectory( msn ) 
33 endif(WITH_msn)
34 if(WITH_oscar)
35   add_subdirectory( oscar )
36 endif(WITH_oscar)
37 if(WITH_yahoo)
38   add_subdirectory( yahoo ) 
39 endif(WITH_yahoo)
40 if(WITH_qq)
41   add_subdirectory( qq )
42 endif(WITH_qq)
43 if(WITH_irc)
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 )
46 endif(WITH_irc)
47 if(NOT WIN32)
48   if(WITH_winpopup)
49     add_subdirectory( winpopup )
50   endif(WITH_winpopup)
51   if(WITH_gadu AND OPENSSL_FOUND)
52         add_subdirectory( gadu )
53   endif(WITH_gadu AND OPENSSL_FOUND)
54   if(WITH_sms)
55     add_subdirectory( sms )
56   endif(WITH_sms)
57 endif(NOT WIN32)
59 if(WITH_messenger)
60   add_subdirectory( messenger )
61 endif(WITH_messenger)
63 if(QCA2_FOUND)
64   if(IDN_FOUND)
65     if(WITH_jabber)
66       add_subdirectory( jabber )
67     endif(WITH_jabber)
68   else(IDN_FOUND)
69     message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled Jabber because libidn-devel was not found")
70   endif(IDN_FOUND)
71   if(WITH_groupwise)
72     add_subdirectory( groupwise )
73   endif(WITH_groupwise)
74 else(QCA2_FOUND)
75   message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled GroupWise and Jabber because QCA2 was not found")
76 endif(QCA2_FOUND)
78 if(WITH_testbed)
79   add_subdirectory( testbed )
80 endif(WITH_testbed)
82 if(WITH_telepathy AND DECIBEL_FOUND)
83   add_subdirectory( telepathy )
84 endif(WITH_telepathy AND DECIBEL_FOUND)
86 if(WITH_bonjour)
87   add_subdirectory( bonjour )
88 endif(WITH_bonjour)
90 if(WITH_meanwhile)
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)
96 endif(WITH_meanwhile)