CMakeLists.txt 2.01 KB
Newer Older
Sebastian Kügler's avatar
Merge  
Sebastian Kügler committed
1
project(kdeplasma-addons)
2
set(PROJECT_VERSION "5.11.2")
Jonathan Riddell's avatar
Jonathan Riddell committed
3
set(PROJECT_VERSION_MAJOR 5)
4

Hrvoje Senjan's avatar
Hrvoje Senjan committed
5
cmake_minimum_required(VERSION 2.8.12)
6 7 8 9 10

################# Disallow in-source build #################
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
   message(FATAL_ERROR "plasma requires an out of source build. Please create a separate build directory and run 'cmake path_to_plasma [options]' there.")
endif()
11

12
include(FeatureSummary)
13

Hrvoje Senjan's avatar
Hrvoje Senjan committed
14 15
find_package(ECM 1.0.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
16

17 18
include(KDEInstallDirs)
include(KDECMakeSettings)
19
include(KDECompilerSettings NO_POLICY_SCOPE)
20
include(ECMQtDeclareLoggingCategory)
Shaun Reich's avatar
Shaun Reich committed
21

Hrvoje Senjan's avatar
Hrvoje Senjan committed
22
set(REQUIRED_QT_VERSION 5.3.0)
David Edmundson's avatar
David Edmundson committed
23
set(KF5_MIN_VERSION 5.34.0)
24
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Gui DBus Quick Qml Widgets X11Extras)
25

Hrvoje Senjan's avatar
Hrvoje Senjan committed
26
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
27
    Activities Config ConfigWidgets CoreAddons I18n KIO KCMUtils Plasma Runner Service UnitConversion KDELibs4Support NewStuff Kross)
28

29
find_package(LibTaskManager CONFIG REQUIRED)
30

31 32 33 34 35 36 37
find_package(X11)
set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries"
                        URL "http://www.x.org"
                        TYPE REQUIRED
                        PURPOSE "Required for building the X11 based workspace"
                      )

38
include_directories(${CMAKE_CURRENT_BINARY_DIR})
39 40 41

add_definitions(-DQT_NO_URL_CAST_FROM_STRING)

42 43 44 45 46 47
#########################################################################

################# list the subdirectories #################
#add_subdirectory(src)
#add_subdirectory( desktoptheme )

48
add_subdirectory(libs)
Bhushan Shah's avatar
Bhushan Shah committed
49
add_subdirectory(applets)
50
add_subdirectory(dataengines)
Marco Martin's avatar
Marco Martin committed
51
add_subdirectory(runners)
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
52

53
add_subdirectory(wallpapers)
Sebastian Kügler's avatar
Merge  
Sebastian Kügler committed
54

55
add_subdirectory(windowswitchers)
56
add_subdirectory(desktopswitchers)
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
57

58 59
configure_file(config-kdeplasma-addons.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kdeplasma-addons.h)

60 61
configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h)

Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
62
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)