2016-12-25 16:19:01 +03:00
project ( lattedock )
2016-12-25 10:25:27 +03:00
cmake_minimum_required ( VERSION 3.0 FATAL_ERROR )
2017-01-06 23:38:18 +03:00
set ( CMAKE_CXX_STANDARD 14 )
2017-01-16 22:48:26 +03:00
set ( VERSION 0.5.91 )
2016-12-30 10:09:21 +03:00
set ( AUTHOR "Michail Vourlakos, Smith Ar" )
set ( EMAIL "mvourlakos@gmail.com, audoban@openmailbox.org" )
2016-12-28 23:44:29 +03:00
set ( WEBSITE "https://github.com/psifidotos/Latte-Dock" )
2017-01-29 08:16:28 +03:00
set ( BUG_ADDRESS "https://github.com/psifidotos/Latte-Dock/issues" )
2016-12-25 10:25:27 +03:00
set ( QT_MIN_VERSION "5.6.0" )
set ( KF5_MIN_VERSION "5.26.0" )
2017-01-26 01:03:15 +03:00
set ( KF5_LOCALE_PREFIX "" )
2017-01-25 19:37:25 +03:00
2016-12-25 10:25:27 +03:00
find_package ( ECM 1.8.0 REQUIRED NO_MODULE )
set ( CMAKE_MODULE_PATH ${ ECM_MODULE_PATH } ${ ECM_KDE_MODULE_DIR } )
2017-02-03 04:18:05 +03:00
find_package ( Qt5 ${ QT_MIN_VERSION } CONFIG REQUIRED NO_MODULE COMPONENTS Quick Qml )
2016-12-25 10:25:27 +03:00
find_package ( KF5 ${ KF5_MIN_VERSION } REQUIRED COMPONENTS
2017-02-03 04:18:05 +03:00
P l a s m a P l a s m a Q u i c k W i n d o w S y s t e m D e c l a r a t i v e A c t i v i t i e s
2017-01-31 22:25:00 +03:00
I 1 8 n C o r e A d d o n s X m l G u i D B u s A d d o n s I c o n T h e m e s W a y l a n d )
2016-12-25 10:25:27 +03:00
2017-02-03 04:18:05 +03:00
find_package ( X11 REQUIRED )
set_package_properties ( X11 PROPERTIES DESCRIPTION "X11 libraries"
2017-02-16 06:14:37 +03:00
U R L " h t t p : / / w w w . x . o r g "
T Y P E O P T I O N A L
P U R P O S E " R e q u i r e d f o r b u i l d i n g t h e X 1 1 b a s e d w o r k s p a c e " )
2017-02-03 04:18:05 +03:00
if ( X11_FOUND )
2017-02-26 03:43:41 +03:00
find_package ( XCB MODULE REQUIRED COMPONENTS XCB RANDR )
2017-02-16 06:14:37 +03:00
set_package_properties ( XCB PROPERTIES TYPE REQUIRED )
find_package ( Qt5 ${ QT_MIN_VERSION } CONFIG REQUIRED COMPONENTS X11Extras )
2017-02-03 04:18:05 +03:00
endif ( )
if ( X11_FOUND AND XCB_XCB_FOUND )
2017-02-16 06:14:37 +03:00
set ( HAVE_X11 ON )
2017-02-03 04:18:05 +03:00
endif ( )
2017-02-16 06:14:37 +03:00
include ( KDEInstallDirs )
include ( KDECMakeSettings )
2017-02-16 06:30:59 +03:00
#include(KDECompilerSettings NO_POLICY_SCOPE)
2017-02-16 06:14:37 +03:00
include ( CMakePackageConfigHelpers )
include ( WriteBasicConfigVersionFile )
include ( CheckIncludeFiles )
include ( ECMOptionalAddSubdirectory )
include ( ECMQtDeclareLoggingCategory )
include ( KDEPackageAppTemplates )
2016-12-25 10:25:27 +03:00
2017-02-16 06:14:37 +03:00
include ( Definitions.cmake )
include ( Locale.cmake )
2016-12-25 10:25:27 +03:00
2016-12-30 10:09:21 +03:00
add_subdirectory ( app )
2016-12-25 16:19:01 +03:00
add_subdirectory ( liblattedock )
2017-02-03 04:18:05 +03:00
add_subdirectory ( shell )
2016-12-25 10:25:27 +03:00
add_subdirectory ( containment )
add_subdirectory ( plasmoid )
2016-12-28 14:24:27 +03:00
add_subdirectory ( icons )
2016-12-25 10:25:27 +03:00
2017-02-03 04:18:05 +03:00
plasma_install_package ( build/shell/release org.kde.latte.shell shells shell )
plasma_install_package ( build/containment/release org.kde.latte.containment )
plasma_install_package ( build/plasmoid/release org.kde.latte.plasmoid )