2024-10-10 15:05:10 +00:00
|
|
|
set(SOURCES
|
|
|
|
${LADYBIRD_SOURCES}
|
2024-10-10 15:56:27 +00:00
|
|
|
Application.cpp
|
|
|
|
HeadlessWebView.cpp
|
|
|
|
Test.cpp
|
2024-10-10 15:05:10 +00:00
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(headless-browser ${SOURCES})
|
|
|
|
target_include_directories(headless-browser PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
target_include_directories(headless-browser PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/)
|
|
|
|
target_link_libraries(headless-browser PRIVATE ${LADYBIRD_LIBS} LibDiff)
|
|
|
|
|
|
|
|
if (BUILD_TESTING)
|
2024-10-14 21:31:55 +00:00
|
|
|
find_package(Python3 REQUIRED)
|
2024-10-10 15:05:10 +00:00
|
|
|
add_test(
|
|
|
|
NAME LibWeb
|
2024-10-14 21:31:55 +00:00
|
|
|
COMMAND $<TARGET_FILE:headless-browser> --run-tests ${LADYBIRD_SOURCE_DIR}/Tests/LibWeb --python-executable ${Python3_EXECUTABLE} --dump-failed-ref-tests --per-test-timeout 120
|
2024-10-10 15:05:10 +00:00
|
|
|
)
|
|
|
|
endif()
|