Build fix, approved in principle by Tim H.
[WebKit-https.git] / WebKitQt / QtLauncher / CMakeLists.txt
index af0f1e7960bccac9e51d82984bf3701fe9af0b56..8100624724593988998f3fff8ed7be1dd5d27ad8 100644 (file)
@@ -5,6 +5,9 @@ include_directories(
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/page
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/loader
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform
+   BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/graphics
+   BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/graphics/svg
+   BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/network
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/qt
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2/svg
@@ -15,7 +18,6 @@ include_directories(
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/css
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/dom
    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/xml
-   BEFORE ${CMAKE_SOURCE_DIR}/kdecore
 )
 
 add_definitions(-Wno-undef -Wno-unused-parameter)
@@ -23,4 +25,8 @@ add_definitions(-Wno-undef -Wno-unused-parameter)
 set(testunity_SRCS main.cpp)
 kde4_automoc(testunity ${testunity_SRCS})
 kde4_add_executable(testunity RUN_UNINSTALLED ${testunity_SRCS})
+IF (WEBKIT_USE_KDE_SUPPORT)
 target_link_libraries(testunity  ${KDE4_KDECORE_LIBS} WebCore-unity )
+ELSE (WEBKIT_USE_KDE_SUPPORT)
+target_link_libraries(testunity WebCore-unity )
+ENDIF (WEBKIT_USE_KDE_SUPPORT)