1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-18 18:03:42 +03:00
latte-dock/CMakeLists.txt

80 lines
2.6 KiB
CMake
Raw Normal View History

project(lattedock)
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 14)
2018-07-15 12:52:30 +03:00
set(VERSION 0.8.75)
2016-12-30 02:09:21 -05:00
set(AUTHOR "Michail Vourlakos, Smith Ar")
set(EMAIL "mvourlakos@gmail.com, audoban@openmailbox.org")
2016-12-28 22:44:29 +02:00
set(WEBSITE "https://github.com/psifidotos/Latte-Dock")
2017-01-29 00:16:28 -05:00
set(BUG_ADDRESS "https://github.com/psifidotos/Latte-Dock/issues")
set(FAQS "https://github.com/psifidotos/Latte-Dock/wiki/F.A.Q.")
set(QT_MIN_VERSION "5.9.0")
set(KF5_MIN_VERSION "5.38.0")
set(KF5_LOCALE_PREFIX "")
find_package(ECM ${KF5_MIN_VER} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED NO_MODULE COMPONENTS DBus Gui Qml Quick)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Activities Archive CoreAddons Crash DBusAddons Declarative GlobalAccel I18n
IconThemes NewStuff Notifications Plasma PlasmaQuick Wayland WindowSystem XmlGui)
2017-02-02 20:18:05 -05:00
find_package(X11 REQUIRED)
set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries"
2017-02-15 22:14:37 -05:00
URL "http://www.x.org"
TYPE OPTIONAL
PURPOSE "Required for building the X11 based workspace")
2017-02-02 20:18:05 -05:00
if(X11_FOUND)
2017-02-26 18:43:35 -05:00
find_package(XCB MODULE REQUIRED COMPONENTS XCB RANDR EVENT)
2017-02-15 22:14:37 -05:00
set_package_properties(XCB PROPERTIES TYPE REQUIRED)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS X11Extras)
2017-06-20 17:21:20 -05:00
if(NOT X11_SM_FOUND)
message(FATAL_ERROR "\nThe X11 Session Management (SM) development package could not be found.
\nPlease install libSM.\n")
endif(NOT X11_SM_FOUND)
2017-02-02 20:18:05 -05:00
endif()
if(X11_FOUND AND XCB_XCB_FOUND)
2017-02-15 22:14:37 -05:00
set(HAVE_X11 ON)
2017-02-02 20:18:05 -05:00
endif()
include(ECMQMLModules)
ecm_find_qmlmodule(QtQuick 2.7)
ecm_find_qmlmodule(QtQuick.Layouts 1.3)
ecm_find_qmlmodule(QtQuick.Controls 1.4)
ecm_find_qmlmodule(QtQuick.Controls.Styles.Plasma 2.0)
ecm_find_qmlmodule(QtGraphicalEffects 1.0)
ecm_find_qmlmodule(org.kde.kquickcontrolsaddons 2.0)
ecm_find_qmlmodule(org.kde.plasma.core 2.0)
ecm_find_qmlmodule(org.kde.plasma.components 2.0)
2017-02-15 22:14:37 -05:00
include(CheckIncludeFiles)
include(CMakePackageConfigHelpers)
2017-02-15 22:14:37 -05:00
include(ECMOptionalAddSubdirectory)
include(ECMQtDeclareLoggingCategory)
include(KDECMakeSettings)
#include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDEInstallDirs)
2017-02-15 22:14:37 -05:00
include(KDEPackageAppTemplates)
2017-08-27 21:56:23 +03:00
include(WriteBasicConfigVersionFile)
2017-02-15 22:14:37 -05:00
include(Definitions.cmake)
add_subdirectory(liblattedock)
add_subdirectory(kwin_scripts)
2016-12-30 02:09:21 -05:00
add_subdirectory(app)
2018-02-06 20:27:35 +02:00
add_subdirectory(containmentactions)
add_subdirectory(applets)
add_subdirectory(containment)
2016-12-28 13:24:27 +02:00
add_subdirectory(icons)
add_subdirectory(plasmoid)
add_subdirectory(shell)
ki18n_install(${CMAKE_CURRENT_BINARY_DIR}/po)