1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-08 01:18:21 +03:00
latte-dock/declarativeimports/core/CMakeLists.txt
Michail Vourlakos 0d1661f942 move Latte::Dialog to LatteCore library
--this way we can use it to plenty places
2021-04-27 15:10:17 +03:00

32 lines
746 B
CMake

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-latte-lib.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-latte-lib.h)
set(lattecoreplugin_SRCS
lattecoreplugin.cpp
dialog.cpp
environment.cpp
iconitem.cpp
quickwindowsystem.cpp
tools.cpp
types.h
)
add_library(lattecoreplugin SHARED ${lattecoreplugin_SRCS})
target_link_libraries(lattecoreplugin
Qt5::Quick
Qt5::Qml
KF5::CoreAddons
KF5::Plasma
KF5::PlasmaQuick
KF5::QuickAddons
KF5::IconThemes
)
if(HAVE_X11)
target_link_libraries(lattecoreplugin KF5::WindowSystem)
endif()
install(TARGETS lattecoreplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte/core)
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte/core)