git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16214 268f45cc-cd09-0410...
[WebKit-https.git] / WebKitQt / WebKitPart / CMakeLists.txt
1 include_directories (
2    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore
3    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../JavaScriptCore
4    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/bridge
5    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/page
6    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/loader
7    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform
8    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/qt
9    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2
10    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2/css
11    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2/svg
12    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/rendering
13    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/editing
14    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/html
15    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/css
16    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/dom
17    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/xml
18    BEFORE ${CMAKE_SOURCE_DIR}/kdecore
19 )
20
21 add_definitions (-Wno-undef -Wno-unused-parameter)
22
23 set (WebKitPart_SRCS WebKitFactory.cpp WebKitPart.cpp WebKitPartInterface.cpp WebKitPartClient.cpp)
24
25 qt4_add_dbus_adaptor (WebKitPart_SRCS org.kde.WebKitPart.xml WebKitPartInterface.h WebKitPartInterface)
26
27 kde4_automoc (${WebKitPart_SRCS})
28 kde4_add_plugin (WebKitPart WITH_PREFIX ${WebKitPart_SRCS})
29 target_link_libraries (WebKitPart ${KDE4_KDECORE_LIBS} kparts WebCore-unity)
30
31 kde4_install_libtool_file (${PLUGIN_INSTALL_DIR}/ WebKitPart)
32 install (TARGETS WebKitPart DESTINATION ${PLUGIN_INSTALL_DIR})
33
34 install (FILES WebKitPart.desktop DESTINATION ${SERVICES_INSTALL_DIR})
35 install (FILES WebKitPart.rc WebKitPartBrowser.rc DESTINATION ${DATA_INSTALL_DIR}/WebKitPart)