mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:52:45 +00:00 
			
		
		
		
	 7598a99ef3
			
		
	
	
		7598a99ef3
		
	
	
	
	
		
			
			This allows the WebDriver to take advantage of the common helper process spawning code when launching ladybird, and to not assume a particular directory layout.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			807 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			807 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(WEBDRIVER_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Services/WebDriver)
 | |
| 
 | |
| set(SOURCES
 | |
|     ${WEBDRIVER_SOURCE_DIR}/Client.cpp
 | |
|     ${WEBDRIVER_SOURCE_DIR}/Session.cpp
 | |
|     ${WEBDRIVER_SOURCE_DIR}/WebContentConnection.cpp
 | |
|     ../Utilities.cpp
 | |
|     ../HelperProcess.cpp
 | |
|     main.cpp
 | |
| )
 | |
| 
 | |
| qt_add_executable(WebDriver ${SOURCES})
 | |
| 
 | |
| target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
 | |
| target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
 | |
| target_include_directories(WebDriver PRIVATE ${SERENITY_SOURCE_DIR}/Userland)
 | |
| target_include_directories(WebDriver PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services)
 | |
| target_link_libraries(WebDriver PRIVATE Qt::Core Qt::Network LibCore LibGfx LibIPC LibJS LibMain LibWeb LibWebSocket)
 | |
| add_dependencies(WebDriver headless-browser)
 |