1c92d8eb4f9e5b42955bff9447baaa5fb1d64f8c
[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/network
9    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/qt
10    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2
11    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2/css
12    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2/svg
13    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/rendering
14    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/editing
15    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/html
16    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/css
17    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/dom
18    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/xml
19    BEFORE ${CMAKE_SOURCE_DIR}/kdecore
20 )
21
22 add_definitions (-Wno-undef -Wno-unused-parameter)
23
24 set (WebKitPart_SRCS WebKitFactory.cpp WebKitPart.cpp WebKitPartBrowserExtension.cpp WebKitPartInterface.cpp WebKitPartClient.cpp)
25
26 qt4_add_dbus_adaptor (WebKitPart_SRCS org.kde.WebKitPart.xml WebKitPartInterface.h WebKitPartInterface)
27
28 kde4_automoc (WebKitPart ${WebKitPart_SRCS})
29 kde4_add_plugin (WebKitPart WITH_PREFIX ${WebKitPart_SRCS})
30 target_link_libraries (WebKitPart ${KDE4_KDECORE_LIBS} kparts WebCore-unity)
31
32 kde4_install_libtool_file (${PLUGIN_INSTALL_DIR}/ WebKitPart)
33 install (TARGETS WebKitPart DESTINATION ${PLUGIN_INSTALL_DIR})
34
35 install (FILES WebKitPart.desktop DESTINATION ${SERVICES_INSTALL_DIR})
36 install (FILES WebKitPart.rc WebKitPartBrowser.rc DESTINATION ${DATA_INSTALL_DIR}/WebKitPart)