Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / protocols / CMakeLists.txt
bloba13fc2326287b2f64b3125dba30fd9f76a5f5ef7
1 # On Solaris, some of the name resolution functions are in libnsl;
2 # this needs to be linked in if found. Copied from kdelibs.
3 check_library_exists(nsl gethostbyname "" HAVE_NSL_LIBRARY)
5 option(WITH_testbed "Enable Kopete testbed protocol" ON)
6 option(WITH_msn "Enable Kopete MSN protocol" OFF)
7 option(WITH_oscar "Enable Kopete Oscar (ICQ and AIM) protocol" ON)
8 option(WITH_yahoo "Enable Kopete Yahoo protocol" ON)
9 option(WITH_qq "Enable Kopete QQ protocol" ON)
10 option(WITH_sms "Enable Kopete SMS protocol" ON)
11 option(WITH_groupwise "Enable Novell GroupWise Messenger protocol" ON)
12 option(WITH_telepathy "Enable Telepathy testbed protocol" OFF)
13 option(WITH_winpopup "Enable Kopete winpopup protocol" ON)
14 option(WITH_gadu "Enable Kopete Gadu-Gadu protocol" ON)
15 option(WITH_jabber "Enable Kopete Jabber protocol" ON)
16 option(WITH_bonjour "Enable Kopete Bonjour protocol" ON)
17 option(WITH_irc "Enable Kopete IRC protocol" OFF)
18 option(WITH_wlm "Enable Window Live Messenger support" ON)
19 option(WITH_meanwhile "Enable Kopete meanwhile protocol" ON)
20 option(WITH_skype "Enable Kopete Skype protocol" ON)
22 if(LIBORTP_FOUND AND SPEEX_FOUND AND ALSA_FOUND AND NOT NO_JINGLE)
23   set(BUILD_JINGLE TRUE)
24 else(LIBORTP_FOUND AND SPEEX_FOUND AND ALSA_FOUND AND NOT NO_JINGLE)
25   set(BUILD_JINGLE FALSE)
26 endif(LIBORTP_FOUND AND SPEEX_FOUND AND ALSA_FOUND AND NOT NO_JINGLE)
28 include_directories(${KOPETE_INCLUDES})
30 if(WITH_wlm AND LIBMSN_FOUND)
31   add_subdirectory( wlm )
32 endif(WITH_wlm AND LIBMSN_FOUND)
34 if(WITH_msn)
35   add_subdirectory( msn ) 
36 endif(WITH_msn)
37 if(WITH_oscar)
38   add_subdirectory( oscar )
39 endif(WITH_oscar)
40 if(WITH_yahoo)
41   add_subdirectory( yahoo ) 
42 endif(WITH_yahoo)
43 if(WITH_qq)
44   add_subdirectory( qq )
45 endif(WITH_qq)
46 if(WITH_irc)
47   message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: WARNING: Building the irc plugin, even if  it hasn't been completely ported yet")
48   add_subdirectory( irc )
49 endif(WITH_irc)
50 if(NOT WIN32)
51   if(WITH_winpopup)
52     add_subdirectory( winpopup )
53   endif(WITH_winpopup)
54   if(WITH_gadu AND LIBGADU_FOUND)
55         add_subdirectory( gadu )
56   endif(WITH_gadu AND LIBGADU_FOUND)
57   if(WITH_sms)
58     add_subdirectory( sms )
59   endif(WITH_sms)
60   if(WITH_skype)
61     add_subdirectory( skype )
62   endif(WITH_skype)
63 endif(NOT WIN32)
65 if(QCA2_FOUND)
66   if(IDN_FOUND)
67     if(WITH_jabber)
68       add_subdirectory( jabber )
69     endif(WITH_jabber)
70   else(IDN_FOUND)
71     message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled Jabber because libidn-devel was not found")
72   endif(IDN_FOUND)
73   if(WITH_groupwise)
74     add_subdirectory( groupwise )
75   endif(WITH_groupwise)
76 else(QCA2_FOUND)
77   message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled GroupWise and Jabber because QCA2 was not found")
78 endif(QCA2_FOUND)
80 if(WITH_testbed)
81   add_subdirectory( testbed )
82 endif(WITH_testbed)
84 if(WITH_telepathy AND DECIBEL_FOUND)
85   add_subdirectory( telepathy )
86 endif(WITH_telepathy AND DECIBEL_FOUND)
88 if(WITH_bonjour)
89   add_subdirectory( bonjour )
90 endif(WITH_bonjour)
92 if(WITH_meanwhile)
93   if(LIBMEANWHILE_FOUND)
94     add_subdirectory( meanwhile )
95   else(LIBMEANWHILE_FOUND)
96     message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled Meanwhile beause libmeanwhile was not found")
97   endif(LIBMEANWHILE_FOUND)
98 endif(WITH_meanwhile)