1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-25 22:50:35 +03:00
latte-dock/liblattedock/CMakeLists.txt
Michail Vourlakos 14cfa0d4bf add ENABLE_MAKE_UNIQUE flag for older gcc versions
--make_unique function is not available for gcc<=4.8.x
by enabling this flag in through install script or through
cmake such systems can build latte correctly
2017-11-06 18:59:21 +02:00

28 lines
675 B
CMake

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