1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-30 01:00:13 +02:00

Make gloox an optional dependency

This commit is contained in:
Dominik Schmidt
2011-02-21 16:29:17 +01:00
parent 45756891b4
commit 7ff06c1380
4 changed files with 30 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
PROJECT( tomahawk )
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
SET( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )
SET( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_SOURCE_DIR}/CMakeModules" )
SET( THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/thirdparty )
# Check if we need qtgui:
@@ -18,12 +18,22 @@ FIND_PACKAGE( Taglib 1.6.0 REQUIRED )
include( CheckTagLibFileName )
check_taglib_filename( COMPLEX_TAGLIB_FILENAME )
# required deps
FIND_PACKAGE( LibLastFm 0.3.3 REQUIRED )
FIND_PACKAGE( LibEchonest 1.1.1 REQUIRED )
FIND_PACKAGE( CLucene 0.9.23 REQUIRED )
FIND_PACKAGE( Gloox 1.0 REQUIRED )
FIND_PACKAGE( QJSON REQUIRED )
# optional deps
INCLUDE( MacroOptionalFindPackage )
INCLUDE( MacroLogFeature )
macro_optional_find_package(Gloox 1.0)
macro_log_feature(Gloox_FOUND "Gloox" "A portable high-level Jabber/XMPP library for C++" "http://camaya.net/gloox" FALSE "" "Gloox is needed for the Jabber SIP plugin and the XMPP-Bot")
macro_display_feature_log()
ADD_SUBDIRECTORY( thirdparty )
ADD_SUBDIRECTORY( src/libtomahawk )
ADD_SUBDIRECTORY( src )