1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 05:17:48 +03:00
latte-dock/liblatte2/CMakeLists.txt
Michail Vourlakos 0b90411b1d IMPORTANT: All new Indicators architecture
--this huge commit contains all the changes needed
in order for Latte to load Indicators dynamically
from their own packages
2019-03-24 12:17:29 +02:00

33 lines
786 B
CMake

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-latte-lib.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-latte-lib.h)
set(latteplugin_SRCS
latteplugin.cpp
backgroundtracker.cpp
commontools.cpp
iconitem.cpp
quickwindowsystem.cpp
types.cpp
plasma/extended/backgroundcache.cpp
plasma/extended/screenpool.cpp
)
add_library(latte2plugin SHARED ${latteplugin_SRCS})
target_link_libraries(latte2plugin
Qt5::Quick
Qt5::Qml
KF5::CoreAddons
KF5::Plasma
KF5::PlasmaQuick
KF5::QuickAddons
KF5::IconThemes
)
if(HAVE_X11)
target_link_libraries(latte2plugin KF5::WindowSystem)
endif()
install(TARGETS latte2plugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte)
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte)