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)
35 add_subdirectory( msn )
38 add_subdirectory( oscar )
41 add_subdirectory( yahoo )
44 add_subdirectory( qq )
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 )
52 add_subdirectory( winpopup )
54 if(WITH_gadu AND LIBGADU_FOUND)
55 add_subdirectory( gadu )
56 endif(WITH_gadu AND LIBGADU_FOUND)
58 add_subdirectory( sms )
61 add_subdirectory( skype )
68 add_subdirectory( jabber )
71 message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled Jabber because libidn-devel was not found")
74 add_subdirectory( groupwise )
77 message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: Disabled GroupWise and Jabber because QCA2 was not found")
81 add_subdirectory( testbed )
84 if(WITH_telepathy AND DECIBEL_FOUND)
85 add_subdirectory( telepathy )
86 endif(WITH_telepathy AND DECIBEL_FOUND)
89 add_subdirectory( bonjour )
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)