1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-24 17:33:50 +03:00
latte-dock/app/CMakeLists.txt

129 lines
3.7 KiB
CMake
Raw Normal View History

2016-12-25 16:37:20 +03:00
set(lattedock-app_SRCS
alternativeshelper.cpp
2020-04-24 10:08:13 +03:00
apptypes.cpp
infoview.cpp
lattecorona.cpp
screenpool.cpp
main.cpp
coretypes.h
)
add_subdirectory(data)
add_subdirectory(declarativeimports)
2019-04-06 22:01:36 +03:00
add_subdirectory(indicator)
add_subdirectory(layout)
add_subdirectory(layouts)
2019-04-06 22:01:36 +03:00
add_subdirectory(package)
add_subdirectory(plasma/extended)
add_subdirectory(settings)
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)
add_subdirectory(settings/viewsdialog)
2019-04-06 22:01:36 +03:00
add_subdirectory(shortcuts)
add_subdirectory(templates)
add_subdirectory(tools)
2019-04-06 22:01:36 +03:00
add_subdirectory(view)
add_subdirectory(view/helpers)
add_subdirectory(view/indicator)
2019-04-06 22:01:36 +03:00
add_subdirectory(view/settings)
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
set(latte_dbusXML dbus/org.kde.LatteDock.xml)
qt5_add_dbus_adaptor(lattedock-app_SRCS ${latte_dbusXML} lattecorona.h Latte::Corona lattedockadaptor)
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)
2016-12-25 16:37:20 +03:00
add_executable(latte-dock ${lattedock-app_SRCS})
2016-12-30 10:10:12 +03:00
include(FakeTarget.cmake)
if(${KF5_VERSION_MINOR} LESS "62")
target_link_libraries(latte-dock
Qt5::DBus
Qt5::Quick
Qt5::Qml
KF5::Activities
KF5::Archive
KF5::CoreAddons
KF5::Crash
KF5::DBusAddons
KF5::Declarative
KF5::GuiAddons
KF5::GlobalAccel
KF5::I18n
KF5::IconThemes
KF5::KIOWidgets
KF5::Notifications
KF5::NewStuff
KF5::QuickAddons
KF5::Plasma
KF5::PlasmaQuick
KF5::ProcessCore
KF5::WaylandClient
KF5::XmlGui
)
else()
target_link_libraries(latte-dock
Qt5::DBus
Qt5::Quick
Qt5::Qml
KF5::Activities
KF5::Archive
KF5::CoreAddons
KF5::Crash
KF5::DBusAddons
KF5::Declarative
KF5::GuiAddons
KF5::GlobalAccel
KF5::I18n
KF5::IconThemes
KF5::KIOWidgets
KF5::Notifications
KF5::NewStuff
KF5::QuickAddons
KF5::Plasma
KF5::PlasmaQuick
KF5::WaylandClient
KF5::XmlGui
)
endif()
if(HAVE_X11)
2017-02-16 06:14:37 +03:00
target_link_libraries(latte-dock
Qt5::X11Extras
KF5::WindowSystem
${X11_LIBRARIES}
${XCB_LIBRARIES}
)
endif()
configure_file(org.kde.latte-dock.desktop.cmake org.kde.latte-dock.desktop)
configure_file(org.kde.latte-dock.appdata.xml.cmake org.kde.latte-dock.appdata.xml)
2016-12-25 16:37:20 +03:00
install(TARGETS latte-dock ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.latte-dock.desktop DESTINATION ${KDE_INSTALL_APPDIR})
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})
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()
add_subdirectory(packageplugins)