2011-02-10 18:41:47 +01:00
|
|
|
project(qtextracomponents)
|
|
|
|
|
2013-02-12 04:34:49 +01:00
|
|
|
#include(KDE4Defaults)
|
2011-02-10 18:41:47 +01:00
|
|
|
|
2012-09-04 01:18:55 +02:00
|
|
|
add_subdirectory(tests)
|
|
|
|
|
2011-02-10 18:41:47 +01:00
|
|
|
set(qtextracomponents_SRCS
|
|
|
|
qtextracomponentsplugin.cpp
|
2013-02-12 04:34:49 +01:00
|
|
|
# qpixmapitem.cpp
|
|
|
|
# qimageitem.cpp
|
|
|
|
# qiconitem.cpp
|
|
|
|
# mouseeventlistener.cpp
|
|
|
|
# columnproxymodel.cpp
|
2011-02-10 18:41:47 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
${KDE4_INCLUDES}
|
|
|
|
)
|
|
|
|
|
|
|
|
qt4_automoc(${qtextracomponents_SRCS})
|
|
|
|
|
|
|
|
add_library(qtextracomponentsplugin SHARED ${qtextracomponents_SRCS})
|
|
|
|
|
2013-02-12 04:34:49 +01:00
|
|
|
target_link_libraries(qtextracomponentsplugin
|
|
|
|
${QT_QTCORE_LIBRARY}
|
|
|
|
${Qt5Quick_LIBRARIES}
|
|
|
|
${Qt5Qml_LIBRARIES}
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
${KDE4_KDEUI_LIBRARY}
|
|
|
|
${KDECLARATIVE_LIBRARIES}
|
|
|
|
plasma)
|
|
|
|
#${KDE4_KDEUI_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${Qt5Quick_LIBRARIES} ${Qt5Qml_LIBRARIES})
|
|
|
|
|
|
|
|
# set(QML_INSTALL_DIR "/home/sebas/kf5/install/lib/qml")
|
|
|
|
# message("!!! Forcing Imports install location: ${QML_INSTALL_DIR}")
|
|
|
|
# message("!!! Remove once merged into cmake-extra-modules")
|
|
|
|
message("### QML_INSTALL_DIR ${QML_INSTALL_DIR}")
|
|
|
|
|
|
|
|
install(TARGETS qtextracomponentsplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/qtextracomponents)
|
2011-02-10 18:41:47 +01:00
|
|
|
|
2013-02-12 04:34:49 +01:00
|
|
|
install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/qtextracomponents)
|