2016-12-25 16:37:20 +03:00
set ( lattedock-app_SRCS
2017-02-14 23:33:45 +03:00
a l t e r n a t i v e s h e l p e r . c p p
2020-04-24 10:08:13 +03:00
a p p t y p e s . c p p
2018-02-03 12:34:13 +03:00
i n f o v i e w . c p p
2018-12-06 15:35:34 +03:00
l a t t e c o r o n a . c p p
2018-10-26 22:39:58 +03:00
s c r e e n p o o l . c p p
2016-12-25 10:25:27 +03:00
m a i n . c p p
2020-04-24 14:52:16 +03:00
c o r e t y p e s . h
2016-12-25 10:25:27 +03:00
)
2020-08-09 14:11:06 +03:00
add_subdirectory ( data )
2020-05-02 13:23:37 +03:00
add_subdirectory ( declarativeimports )
2019-04-06 22:01:36 +03:00
add_subdirectory ( indicator )
add_subdirectory ( layout )
2019-05-09 17:12:57 +03:00
add_subdirectory ( layouts )
2019-04-06 22:01:36 +03:00
add_subdirectory ( package )
add_subdirectory ( plasma/extended )
add_subdirectory ( settings )
2021-02-09 21:22:31 +03:00
add_subdirectory ( settings/generic )
add_subdirectory ( settings/detailsdialog )
add_subdirectory ( settings/detailsdialog/delegates )
add_subdirectory ( settings/exporttemplatedialog )
add_subdirectory ( settings/exporttemplatedialog/delegates )
add_subdirectory ( settings/settingsdialog )
add_subdirectory ( settings/settingsdialog/delegates )
2021-03-15 12:14:45 +03:00
add_subdirectory ( settings/viewsdialog )
2019-04-06 22:01:36 +03:00
add_subdirectory ( shortcuts )
2020-08-12 12:02:46 +03:00
add_subdirectory ( templates )
2020-04-18 13:34:59 +03:00
add_subdirectory ( tools )
2019-04-06 22:01:36 +03:00
add_subdirectory ( view )
2020-01-22 20:45:13 +03:00
add_subdirectory ( view/helpers )
2019-06-03 18:36:45 +03:00
add_subdirectory ( view/indicator )
2019-04-06 22:01:36 +03:00
add_subdirectory ( view/settings )
2019-06-08 16:20:43 +03:00
add_subdirectory ( view/windowstracker )
2019-04-06 22:01:36 +03:00
add_subdirectory ( wm )
2019-05-31 14:52:16 +03:00
add_subdirectory ( wm/tracker )
2019-04-06 22:01:36 +03:00
2017-03-11 11:06:10 +03:00
set ( latte_dbusXML dbus/org.kde.LatteDock.xml )
2018-12-06 15:35:34 +03:00
qt5_add_dbus_adaptor ( lattedock-app_SRCS ${ latte_dbusXML } lattecorona.h Latte::Corona lattedockadaptor )
2020-03-26 21:04:44 +03:00
2021-02-09 21:22:31 +03:00
ki18n_wrap_ui ( lattedock-app_SRCS settings/detailsdialog/detailsdialog.ui )
ki18n_wrap_ui ( lattedock-app_SRCS settings/exporttemplatedialog/exporttemplatedialog.ui )
ki18n_wrap_ui ( lattedock-app_SRCS settings/settingsdialog/settingsdialog.ui )
2021-03-15 11:52:52 +03:00
ki18n_wrap_ui ( lattedock-app_SRCS settings/viewsdialog/viewsdialog.ui )
2017-03-11 11:06:10 +03:00
2016-12-25 16:37:20 +03:00
add_executable ( latte-dock ${ lattedock-app_SRCS } )
2016-12-25 10:25:27 +03:00
2016-12-30 10:10:12 +03:00
include ( FakeTarget.cmake )
2019-10-31 17:35:32 +03:00
if ( ${ KF5_VERSION_MINOR } LESS "62" )
target_link_libraries ( latte-dock
Q t 5 : : D B u s
Q t 5 : : Q u i c k
Q t 5 : : Q m l
K F 5 : : A c t i v i t i e s
K F 5 : : A r c h i v e
K F 5 : : C o r e A d d o n s
K F 5 : : C r a s h
K F 5 : : D B u s A d d o n s
K F 5 : : D e c l a r a t i v e
K F 5 : : G u i A d d o n s
K F 5 : : G l o b a l A c c e l
K F 5 : : I 1 8 n
K F 5 : : I c o n T h e m e s
2020-03-17 15:06:38 +03:00
K F 5 : : K I O W i d g e t s
2019-10-31 17:35:32 +03:00
K F 5 : : N o t i f i c a t i o n s
K F 5 : : N e w S t u f f
K F 5 : : Q u i c k A d d o n s
K F 5 : : P l a s m a
K F 5 : : P l a s m a Q u i c k
K F 5 : : P r o c e s s C o r e
K F 5 : : W a y l a n d C l i e n t
K F 5 : : X m l G u i
)
else ( )
target_link_libraries ( latte-dock
Q t 5 : : D B u s
Q t 5 : : Q u i c k
Q t 5 : : Q m l
K F 5 : : A c t i v i t i e s
K F 5 : : A r c h i v e
K F 5 : : C o r e A d d o n s
K F 5 : : C r a s h
K F 5 : : D B u s A d d o n s
K F 5 : : D e c l a r a t i v e
K F 5 : : G u i A d d o n s
K F 5 : : G l o b a l A c c e l
K F 5 : : I 1 8 n
K F 5 : : I c o n T h e m e s
2020-03-17 15:06:38 +03:00
K F 5 : : K I O W i d g e t s
2019-10-31 17:35:32 +03:00
K F 5 : : N o t i f i c a t i o n s
K F 5 : : N e w S t u f f
K F 5 : : Q u i c k A d d o n s
K F 5 : : P l a s m a
K F 5 : : P l a s m a Q u i c k
K F 5 : : W a y l a n d C l i e n t
K F 5 : : X m l G u i
)
endif ( )
2016-12-25 10:25:27 +03:00
2017-01-31 22:25:00 +03:00
if ( HAVE_X11 )
2017-02-16 06:14:37 +03:00
target_link_libraries ( latte-dock
Q t 5 : : X 1 1 E x t r a s
K F 5 : : W i n d o w S y s t e m
$ { X 1 1 _ L I B R A R I E S }
$ { X C B _ L I B R A R I E S }
)
2017-01-31 22:25:00 +03:00
endif ( )
2017-05-12 23:25:22 +03:00
configure_file ( org.kde.latte-dock.desktop.cmake org.kde.latte-dock.desktop )
2017-05-13 00:10:47 +03:00
configure_file ( org.kde.latte-dock.appdata.xml.cmake org.kde.latte-dock.appdata.xml )
2017-03-11 11:06:10 +03:00
2016-12-25 16:37:20 +03:00
install ( TARGETS latte-dock ${ KDE_INSTALL_TARGETS_DEFAULT_ARGS } )
2017-05-12 23:25:22 +03:00
install ( FILES ${ CMAKE_CURRENT_BINARY_DIR } /org.kde.latte-dock.desktop DESTINATION ${ KDE_INSTALL_APPDIR } )
2017-05-13 00:10:47 +03:00
install ( FILES ${ CMAKE_CURRENT_BINARY_DIR } /org.kde.latte-dock.appdata.xml DESTINATION ${ KDE_INSTALL_METAINFODIR } )
2017-03-21 10:05:48 +03:00
install ( FILES dbus/org.kde.LatteDock.xml DESTINATION ${ KDE_INSTALL_DBUSINTERFACEDIR } )
install ( FILES lattedock.notifyrc DESTINATION ${ KNOTIFYRC_INSTALL_DIR } )
2020-03-22 19:39:36 +03:00
if ( ${ KF5_VERSION_MINOR } LESS "57" )
install ( FILES latte-layouts.knsrc DESTINATION ${ CONFIG_INSTALL_DIR } )
install ( FILES latte-indicators.knsrc DESTINATION ${ CONFIG_INSTALL_DIR } )
else ( )
install ( FILES latte-layouts.knsrc DESTINATION ${ KDE_INSTALL_KNSRCDIR } )
install ( FILES latte-indicators.knsrc DESTINATION ${ KDE_INSTALL_KNSRCDIR } )
endif ( )
2019-03-29 20:09:08 +03:00
add_subdirectory ( packageplugins )