Added OpenSLP support to CMake

pull/1/head
Slávek Banko 12 years ago
parent 93dc872306
commit 354555a2b8

@ -49,6 +49,7 @@ option( WITH_SPEEX "Enable speex support (for jingle)" OFF )
option( WITH_WEBCAM "Enable webcam support (kopete/msn)" OFF )
option( WITH_GSM "Enable GSM SMS support (kopete/sms)" OFF )
option( WITH_ARTS "Enable aRts support" OFF )
option( WITH_SLP "Enable OpenSLP support (krdc, krfb)" OFF )
##### kopete protocols ##########################

@ -30,3 +30,12 @@ endif( )
# required stuff
find_package( TQt )
find_package( TDE )
if( WITH_SLP )
check_library_exists( slp "SLPOpen" "" HAVE_SLP )
if( HAVE_SLP )
set(LIB_SLP slp )
else( )
tde_message_fatal( "openslp is required, but was not found on your system" )
endif( )
endif( )

@ -21,6 +21,9 @@
#cmakedefine HAVE_SYS_PARAM_H 1
#cmakedefine HAVE_NET_IF_PPP_H 1
// krcd / krfb
#cmakedefine HAVE_SLP 1
// ktalkd
#cmakedefine HAVE_SYS_TYPES_H 1
#cmakedefine HAVE_SYS_STAT_H 1

@ -60,6 +60,6 @@ tde_add_executable( krdc AUTOMOC
maindialogbase.ui keycapturewidget.ui kservicelocator.cpp
keycapturedialog.cpp kremoteview.cpp smartptr.cpp hostpreferences.cpp
preferencesdialog.cpp maindialogwidget.cpp maindialog.cpp
LINK vnc-static rdp-static tdeui-shared kdnssd-shared kwalletclient-shared jpeg Xext
LINK vnc-static rdp-static tdeui-shared kdnssd-shared kwalletclient-shared jpeg Xext ${LIB_SLP}
DESTINATION ${BIN_INSTALL_DIR}
)

@ -24,4 +24,6 @@ tde_add_library( srvloc STATIC_PIC AUTOMOC
SOURCES
kserviceregistry.cpp uuid.cpp kinetinterface.cpp
kinetinterfacewatcher.cpp getifaddrs.cpp
LINK
${LIB_SLP}
)

Loading…
Cancel
Save