WebDriver: implement maximize, minimize and fullscreen window commands
[WebKit-https.git] / Source / WebDriver / CMakeLists.txt
1 set_property(DIRECTORY . PROPERTY FOLDER "WebDriver")
2
3 set(WebDriver_INCLUDE_DIRECTORIES
4     "${WEBDRIVER_DIR}"
5     "${DERIVED_SOURCES_WEBDRIVER_DIR}"
6     "${FORWARDING_HEADERS_DIR}"
7 )
8
9 set(WebDriver_SOURCES
10     CommandResult.cpp
11     HTTPServer.cpp
12     Session.cpp
13     SessionHost.cpp
14     WebDriverMain.cpp
15     WebDriverService.cpp
16 )
17
18 set(WebDriver_LIBRARIES
19     WTF
20 )
21
22 set(WebDriver_SCRIPTS
23     ${WEBKIT_DIR}/UIProcess/Automation/atoms/ElementAttribute.js
24     ${WEBKIT_DIR}/UIProcess/Automation/atoms/ElementDisplayed.js
25     ${WEBKIT_DIR}/UIProcess/Automation/atoms/EnterFullscreen.js
26     ${WEBKIT_DIR}/UIProcess/Automation/atoms/FindNodes.js
27     ${WEBKIT_DIR}/UIProcess/Automation/atoms/FormElementClear.js
28     ${WEBKIT_DIR}/UIProcess/Automation/atoms/FormSubmit.js
29 )
30
31 set(JavaScriptCore_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/JavaScriptCore/Scripts")
32 MAKE_JS_FILE_ARRAYS(
33     ${DERIVED_SOURCES_WEBDRIVER_DIR}/WebDriverAtoms.cpp
34     ${DERIVED_SOURCES_WEBDRIVER_DIR}/WebDriverAtoms.h
35     WebDriver
36     WebDriver_SCRIPTS
37     Session.cpp
38 )
39 list(APPEND WebDriver_SOURCES ${DERIVED_SOURCES_WEBDRIVER_DIR}/WebDriverAtoms.cpp)
40
41 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
42
43 include_directories(${WebDriver_INCLUDE_DIRECTORIES})
44 include_directories(SYSTEM ${WebDriver_SYSTEM_INCLUDE_DIRECTORIES})
45 add_executable(WebDriver ${WebDriver_SOURCES})
46 target_link_libraries(WebDriver ${WebDriver_LIBRARIES})
47
48 if (WebDriver_Process_OUTPUT_NAME)
49     set_target_properties(WebDriver PROPERTIES OUTPUT_NAME ${WebDriver_Process_OUTPUT_NAME})
50 endif ()
51
52 install(TARGETS WebDriver
53     RUNTIME DESTINATION "${EXEC_INSTALL_DIR}"
54 )