Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
1 | project(Amarok) | 1 | project(Amarok) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | cmake_minimum_required(VERSION 2.6.2) | 3 | cmake_minimum_required(VERSION 2.6.2) | ||
4 | 4 | | |||
5 | set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ) | 5 | set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ) | ||
6 | 6 | | |||
7 | message(STATUS "${CMAKE_MODULE_PATH}") | 7 | message(STATUS "${CMAKE_MODULE_PATH}") | ||
8 | 8 | | |||
9 | option(WITH_UTILITIES "Enable building of utilities" ON) | 9 | option(WITH_UTILITIES "Enable building of utilities" ON) | ||
10 | option(WITH_PLAYER "Enable building of main Amarok player" ON) | 10 | option(WITH_PLAYER "Enable building of main Amarok player" ON) | ||
11 | option(WITH_MP3Tunes "Enable mp3tunes in the Amarok player, requires multiple extra dependencies" ON) | 11 | option(WITH_MP3Tunes "Enable mp3tunes in the Amarok player, requires multiple extra dependencies" ON) | ||
12 | option(WITH_IPOD "Enable iPod support in Amarok" ON) | 12 | option(WITH_IPOD "Enable iPod support in Amarok" ON) | ||
13 | option(WITH_MYSQL_EMBEDDED "Build the embedded database library -- highly recommended" ON) | 13 | option(WITH_MYSQL_EMBEDDED "Build the embedded database library -- highly recommended" ON) | ||
14 | option(WITH_PLAYGROUND "Enable building of playground scripts and applets (WARNING: some of them might have legal issues!)" OFF) | 14 | option(WITH_PLAYGROUND "Enable building of playground scripts and applets (WARNING: some of them might have legal issues!)" OFF) | ||
15 | option(WITH_QTWEBKIT "Enables the Info, Wikipedia and Upcoming Events (with LastFM) context applets" ON) | ||||
15 | 16 | | |||
16 | ############### Taglib | 17 | ############### Taglib | ||
17 | set(TAGLIB_MIN_VERSION "1.7") | 18 | set(TAGLIB_MIN_VERSION "1.7") | ||
18 | find_package(Taglib REQUIRED) | 19 | find_package(Taglib REQUIRED) | ||
19 | 20 | | |||
20 | # Check if TagLib is built with ASF and MP4 support | 21 | # Check if TagLib is built with ASF and MP4 support | ||
21 | include(CheckCXXSourceCompiles) | 22 | include(CheckCXXSourceCompiles) | ||
22 | set(CMAKE_REQUIRED_INCLUDES "${TAGLIB_INCLUDES}") | 23 | set(CMAKE_REQUIRED_INCLUDES "${TAGLIB_INCLUDES}") | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 72 | if (CMAKE_COMPILER_IS_GNUCXX) | |||
75 | endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | 76 | endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||
76 | endif (CMAKE_COMPILER_IS_GNUCXX) | 77 | endif (CMAKE_COMPILER_IS_GNUCXX) | ||
77 | 78 | | |||
78 | include_directories( | 79 | include_directories( | ||
79 | ${CMAKE_CURRENT_SOURCE_DIR}/shared | 80 | ${CMAKE_CURRENT_SOURCE_DIR}/shared | ||
80 | ${CMAKE_CURRENT_BINARY_DIR}/shared | 81 | ${CMAKE_CURRENT_BINARY_DIR}/shared | ||
81 | ) | 82 | ) | ||
82 | 83 | | |||
83 | find_package( Qt4 4.8.3 COMPONENTS QtCore QtGui QtScript QtSvg QtXml QtWebKit REQUIRED ) | 84 | find_package( Qt4 4.8.3 COMPONENTS QtCore QtGui QtScript QtSvg QtXml REQUIRED ) | ||
85 | if(WITH_QTWEBKIT) | ||||
86 | find_package( Qt4 COMPONENTS QtWebkit REQUIRED) | ||||
87 | endif() | ||||
84 | find_package( KDE4 4.8.4 REQUIRED ) | 88 | find_package( KDE4 4.8.4 REQUIRED ) | ||
85 | 89 | | |||
86 | 90 | | |||
87 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") # Require C++11 | 91 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") # Require C++11 | ||
88 | 92 | | |||
89 | # WORKAROUND for Clang bug: http://llvm.org/bugs/show_bug.cgi?id=15651 | 93 | # WORKAROUND for Clang bug: http://llvm.org/bugs/show_bug.cgi?id=15651 | ||
90 | if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND WIN32) | 94 | if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND WIN32) | ||
91 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-delayed-template-parsing") | 95 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-delayed-template-parsing") | ||
Show All 36 Lines | |||||
128 | add_subdirectory( images ) | 132 | add_subdirectory( images ) | ||
129 | add_subdirectory( shared ) | 133 | add_subdirectory( shared ) | ||
130 | 134 | | |||
131 | if( WITH_PLAYER ) | 135 | if( WITH_PLAYER ) | ||
132 | include(MacroLogFeature) | 136 | include(MacroLogFeature) | ||
133 | 137 | | |||
134 | macro_log_feature( KDE4_FOUND "kdelibs" "The toolkit Amarok uses to build" "http://www.kde.org" TRUE ${KDE_MIN_VERSION} "" ) | 138 | macro_log_feature( KDE4_FOUND "kdelibs" "The toolkit Amarok uses to build" "http://www.kde.org" TRUE ${KDE_MIN_VERSION} "" ) | ||
135 | 139 | | |||
136 | macro_log_feature( QT_QTOPENGL_FOUND "QtOpenGL" "Required for the spectrum analyzer" "http://qt-project.org" FALSE "" "" ) | 140 | macro_log_feature( QT_QTOPENGL_FOUND "QtOpenGL" "Required for the spectrum analyzer" "https://www.qt.io/" FALSE "" "" ) | ||
141 | macro_log_feature( WITH_QTWEBKIT "QtWebkit" | ||||
142 | "Required for the Info, Wikipedia and Upcoming Events (with LastFM) context applets" | ||||
143 | "https://www.qt.io/" FALSE "4.8.3" "" | ||||
144 | ) | ||||
137 | 145 | | |||
138 | find_package(MySQLAmarok REQUIRED) | 146 | find_package(MySQLAmarok REQUIRED) | ||
139 | if( WITH_MYSQL_EMBEDDED ) | 147 | if( WITH_MYSQL_EMBEDDED ) | ||
140 | set( BUILD_MYSQLE_COLLECTION TRUE ) | 148 | set( BUILD_MYSQLE_COLLECTION TRUE ) | ||
141 | macro_log_feature( MYSQL_EMBEDDED_FOUND "mysqld" "Embedded MySQL Libraries" "http://www.mysql.com" TRUE "" "" ) | 149 | macro_log_feature( MYSQL_EMBEDDED_FOUND "mysqld" "Embedded MySQL Libraries" "http://www.mysql.com" TRUE "" "" ) | ||
142 | else( WITH_MYSQL_EMBEDDED ) | 150 | else( WITH_MYSQL_EMBEDDED ) | ||
143 | add_definitions( "-DNO_MYSQL_EMBEDDED" ) | 151 | add_definitions( "-DNO_MYSQL_EMBEDDED" ) | ||
144 | endif( WITH_MYSQL_EMBEDDED ) | 152 | endif( WITH_MYSQL_EMBEDDED ) | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |