kdelibs/kdewidgets/CMakeLists.txt
Ivailo Monev 8583056683 kdewidgets: link the widgets plugin to KtUiTools component
for the reference to QCustomWidget, fixes loading of the plugin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 22:56:44 +03:00

37 lines
836 B
CMake

project(kdewidgets)
add_subdirectory(pics)
include_directories(
${KDE4_KIO_INCLUDES}
${CMAKE_SOURCE_DIR}/kutils/kmediaplayer
# for the export header
${CMAKE_BINARY_DIR}/kutils/kmediaplayer
)
########### next target ###############
add_executable(makekdewidgets makekdewidgets.cpp)
target_link_libraries(makekdewidgets kdecore)
install(
TARGETS makekdewidgets
EXPORT kdelibsTargets
DESTINATION ${KDE4_BIN_INSTALL_DIR}
)
########### next target ###############
if(QT_QTUITOOLS_FOUND)
kde4_add_widget(kdewidgets_SRCS kde.widgets)
kde4_add_plugin(kdewidgets ${kdewidgets_SRCS})
target_link_libraries(kdewidgets kio kmediaplayer ${QT_QTUITOOLS_LIBRARY})
install(
TARGETS kdewidgets
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}/plugins/designer
)
endif(QT_QTUITOOLS_FOUND)