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" )
|
|
|
|
|
|
|
|
# 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 )
|
|
|
|
FIND_PACKAGE( LibLastFm REQUIRED )
|
2010-11-27 09:38:38 -05:00
|
|
|
FIND_PACKAGE( LibEchonest REQUIRED )
|
2010-10-17 05:32:01 +02:00
|
|
|
|
2010-11-14 06:12:41 +01:00
|
|
|
IF( UNIX AND NOT APPLE )
|
|
|
|
ADD_SUBDIRECTORY( alsa-playback )
|
2010-10-17 05:32:01 +02:00
|
|
|
ELSE()
|
2010-11-14 06:12:41 +01:00
|
|
|
ADD_SUBDIRECTORY( rtaudio )
|
|
|
|
ENDIF( UNIX AND NOT APPLE )
|
2010-10-17 05:32:01 +02:00
|
|
|
|
|
|
|
ADD_SUBDIRECTORY( libportfwd )
|
2010-11-16 06:02:40 +01:00
|
|
|
ADD_SUBDIRECTORY( qxt )
|
2010-10-17 05:32:01 +02:00
|
|
|
ADD_SUBDIRECTORY( src )
|
|
|
|
|