Reviewed by Maciej.
[WebKit-https.git] / WebKitQt / QtLauncher / 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/graphics
9    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/graphics/svg
10    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/network
11    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/platform/qt
12    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2
13    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2/svg
14    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/ksvg2/css
15    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/rendering
16    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/editing
17    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/html
18    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/css
19    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/dom
20    BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../../WebCore/xml
21 )
22
23 add_definitions(-Wno-undef -Wno-unused-parameter)
24
25 set(testunity_SRCS main.cpp)
26 IF (WEBKIT_USE_KDE_SUPPORT)
27     kde4_add_executable(testunity RUN_UNINSTALLED ${testunity_SRCS})
28     target_link_libraries(testunity  ${KDE4_KDECORE_LIBS} WebCore-unity)
29     kde4_automoc(testunity ${testunity_SRCS})
30 ELSE (WEBKIT_USE_KDE_SUPPORT)
31     include_directories(${QT_INCLUDES})
32     add_executable(testunity ${testunity_SRCS})
33     target_link_libraries(testunity WebCore-unity)
34     qt4_automoc(testunity ${testunity_SRCS})
35 ENDIF (WEBKIT_USE_KDE_SUPPORT)