2010-10-17 05:32:01 +02:00
|
|
|
PROJECT( tomahawk )
|
|
|
|
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
|
|
|
|
|
|
|
|
SET( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )
|
2011-02-21 13:10:30 +01:00
|
|
|
SET( THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/thirdparty )
|
2010-10-17 05:32:01 +02:00
|
|
|
|
|
|
|
# Check if we need qtgui:
|
|
|
|
IF( "${gui}" STREQUAL "no" )
|
|
|
|
ADD_DEFINITIONS( -DENABLE_HEADLESS )
|
|
|
|
MESSAGE( STATUS "Building in HEADLESS mode ***" )
|
|
|
|
FIND_PACKAGE( Qt4 4.6.0 COMPONENTS QtCore QtXml QtNetwork REQUIRED )
|
|
|
|
ELSE()
|
|
|
|
MESSAGE( STATUS "Building full GUI version ***" )
|
|
|
|
FIND_PACKAGE( Qt4 4.6.0 COMPONENTS QtGui QtCore QtXml QtNetwork REQUIRED )
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
FIND_PACKAGE( Taglib 1.6.0 REQUIRED )
|
2011-02-10 11:18:59 +01:00
|
|
|
include( CheckTagLibFileName )
|
|
|
|
check_taglib_filename( COMPLEX_TAGLIB_FILENAME )
|
|
|
|
|
2011-01-28 00:36:51 +01:00
|
|
|
FIND_PACKAGE( LibLastFm 0.3.3 REQUIRED )
|
2011-01-28 08:00:29 -05:00
|
|
|
FIND_PACKAGE( LibEchonest 1.1.1 REQUIRED )
|
2011-02-03 11:02:35 +01:00
|
|
|
FIND_PACKAGE( CLucene REQUIRED )
|
2011-02-15 14:57:10 +01:00
|
|
|
FIND_PACKAGE( Gloox 1.0 REQUIRED )
|
2010-10-17 05:32:01 +02:00
|
|
|
|
2011-01-27 00:05:16 -05:00
|
|
|
ADD_SUBDIRECTORY( thirdparty )
|
2010-12-28 06:12:48 +01:00
|
|
|
ADD_SUBDIRECTORY( src/libtomahawk )
|
2010-10-17 05:32:01 +02:00
|
|
|
ADD_SUBDIRECTORY( src )
|