Add general CMakeLists.txt for DRT
[WebKit-https.git] / Tools / DumpRenderTree / CMakeLists.txt
1 set(DumpRenderTree_SOURCES
2     AccessibilityController.cpp
3     AccessibilityTextMarker.cpp
4     AccessibilityUIElement.cpp
5     CyclicRedundancyCheck.cpp
6     DumpRenderTreeCommon.cpp
7     GCController.cpp
8     PixelDumpSupport.cpp
9     TestRunner.cpp
10     WorkQueue.cpp
11 )
12
13 set(DumpRenderTree_LIBRARIES
14     JavaScriptCore
15     WTF
16     WebCore
17     WebCoreTestSupport
18     WebKit
19 )
20
21 set(DumpRenderTree_INCLUDE_DIRECTORIES
22     ${WEBCORE_DIR}
23     ${WEBCORE_DIR}/bindings
24     ${WEBCORE_DIR}/bridge
25     ${WEBCORE_DIR}/bridge/jsc
26     ${WEBCORE_DIR}/css
27     ${WEBCORE_DIR}/dom
28     ${WEBCORE_DIR}/editing
29     ${WEBCORE_DIR}/history
30     ${WEBCORE_DIR}/html
31     ${WEBCORE_DIR}/inspector
32     ${WEBCORE_DIR}/loader
33     ${WEBCORE_DIR}/loader/cache
34     ${WEBCORE_DIR}/loader/icon
35     ${WEBCORE_DIR}/page
36     ${WEBCORE_DIR}/page/animation
37     ${WEBCORE_DIR}/platform
38     ${WEBCORE_DIR}/platform/animation
39     ${WEBCORE_DIR}/platform/graphics
40     ${WEBCORE_DIR}/platform/graphics/transforms
41     ${WEBCORE_DIR}/platform/network
42     ${WEBCORE_DIR}/platform/text
43     ${WEBCORE_DIR}/plugins
44     ${WEBCORE_DIR}/rendering
45     ${WEBCORE_DIR}/rendering/shapes
46     ${WEBCORE_DIR}/rendering/style
47     ${JAVASCRIPTCORE_DIR}
48     ${JAVASCRIPTCORE_DIR}/API
49     ${JAVASCRIPTCORE_DIR}/assembler
50     ${JAVASCRIPTCORE_DIR}/bytecode
51     ${JAVASCRIPTCORE_DIR}/dfg
52     ${JAVASCRIPTCORE_DIR}/disassembler
53     ${JAVASCRIPTCORE_DIR}/heap
54     ${JAVASCRIPTCORE_DIR}/interpreter
55     ${JAVASCRIPTCORE_DIR}/jit
56     ${JAVASCRIPTCORE_DIR}/llint
57     ${JAVASCRIPTCORE_DIR}/profiler
58     ${JAVASCRIPTCORE_DIR}/runtime
59     ${JAVASCRIPTCORE_DIR}/ForwardingHeaders
60     ${TOOLS_DIR}/DumpRenderTree
61     ${WTF_DIR}
62     ${CMAKE_SOURCE_DIR}/Source
63     ${CMAKE_BINARY_DIR}
64     ${DERIVED_SOURCES_WEBCORE_DIR}
65     ${WEBCORE_DIR}/bindings/js
66     ${WEBCORE_DIR}/testing/js
67 )
68
69 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
70
71 include_directories(${DumpRenderTree_INCLUDE_DIRECTORIES})
72
73 add_executable(DumpRenderTree ${DumpRenderTree_SOURCES})
74 target_link_libraries(DumpRenderTree ${DumpRenderTree_LIBRARIES})
75 set_target_properties(DumpRenderTree PROPERTIES FOLDER "Tools")