mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00

for the reference to QCustomWidget, fixes loading of the plugin Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
37 lines
836 B
CMake
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)
|
|
|