plasma-framework/declarativeimports/core/CMakeLists.txt
2013-02-02 03:32:01 +01:00

41 lines
1.1 KiB
CMake

project(corebindings)
set(corebindings_SRCS
# declarativeitemcontainer.cpp
corebindingsplugin.cpp
# dataengineconsumer.cpp
# theme.cpp
# datamodel.cpp
# datasource.cpp
# runnermodel.cpp
svgitem.cpp
framesvgitem.cpp
# dialog.cpp
# tooltip.cpp
# dataenginebindings.cpp
iconitem.cpp
)
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${KDE4_INCLUDES}
${KDECLARATIVE_INCLUDE_DIR}
)
qt4_automoc(${corebindings_SRCS})
# Qt installs plugins here:
# /home/sebas/kf5/qt5/qtdeclarative/src/imports/window/plugins.qmltypes /home/sebas/kf5/install/qml/QtQuick/Window.2/
set(IMPORTS_INSTALL_DIR "qml")
message("!!! Forcing Imports install location: ${IMPORTS_INSTALL_DIR}")
add_library(corebindingsplugin SHARED ${corebindings_SRCS})
target_link_libraries(corebindingsplugin ${KDE4_PLASMA_LIBS} ${QT_QTSCRIPT_LIBRARY} ${Qt5Quick_LIBRARIES} ${Qt5Qml_LIBRARIES} ${KDECLARATIVE_LIBRARIES})
install(TARGETS corebindingsplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/plasma/core)
install(FILES qmldir DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/plasma/core)
#add_subdirectory(tests)