summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-10-26 16:41:56 -0500
committerSlávek Banko <[email protected]>2012-10-27 01:20:17 +0200
commite96ccabf98d3ca8ec59426d863eb4fb6fd7c4ffe (patch)
tree2a8a4f2457b283059c7c3277b6c40c683d36e10b
parent702c18042272aad4f63effb0dbc5be69a055faa3 (diff)
downloadtdenetwork-e96ccabf98d3ca8ec59426d863eb4fb6fd7c4ffe.tar.gz
tdenetwork-e96ccabf98d3ca8ec59426d863eb4fb6fd7c4ffe.zip
Added XMMS support to CMake.
Thanks to Slavek Banko. (cherry picked from commit 10026753cb9c2f8231ef0f5be01fd0f3a8142aef)
-rw-r--r--CMakeLists.txt1
-rw-r--r--config.h.cmake3
-rw-r--r--kopete/plugins/nowlistening/CMakeLists.txt5
3 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 26017435..86199c1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,7 @@ option( WITH_JINGLE "Enable jingle support (kopete)" OFF )
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_XMMS "Enable XMMS support (kopete/nowlistening)" OFF )
option( WITH_ARTS "Enable aRts support" OFF )
option( WITH_SLP "Enable OpenSLP support (krdc, krfb)" OFF )
diff --git a/config.h.cmake b/config.h.cmake
index d7f383d4..9e0cfbad 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -17,6 +17,9 @@
#cmakedefine HAVE_GLIB 1
#cmakedefine HAVE_SPEEX 1
+// kopete/plugins/nowlistening
+#cmakedefine HAVE_XMMS 1
+
// kppp
#cmakedefine HAVE_SYS_PARAM_H 1
#cmakedefine HAVE_NET_IF_PPP_H 1
diff --git a/kopete/plugins/nowlistening/CMakeLists.txt b/kopete/plugins/nowlistening/CMakeLists.txt
index b1b6b198..a236a7e2 100644
--- a/kopete/plugins/nowlistening/CMakeLists.txt
+++ b/kopete/plugins/nowlistening/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
+include( ConfigureChecks.cmake )
+
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
@@ -16,6 +18,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/kopete/libkopete/ui
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
+ ${XMMS_INCLUDES}
)
link_directories(
@@ -38,7 +41,7 @@ tde_add_kpart( kopete_nowlistening AUTOMOC
nowlisteningconfig.kcfgc nowlisteningplugin.cpp nlkscd.cpp
nlnoatun.cpp nlxmms.cpp nowlisteningguiclient.cpp nljuk.cpp
nlamarok.cpp nlkaffeine.cpp
- LINK kopete-shared
+ LINK kopete-shared ${XMMS_LIBS}
DESTINATION ${PLUGIN_INSTALL_DIR}
)