mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-01 12:00:27 +00:00
be03002780
Also bump the test timeout when running ctest to 120 seconds, to accommodate the slow GCC CI.
19 lines
604 B
CMake
19 lines
604 B
CMake
set(SOURCES
|
|
${LADYBIRD_SOURCES}
|
|
Application.cpp
|
|
HeadlessWebView.cpp
|
|
Test.cpp
|
|
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)
|
|
add_test(
|
|
NAME LibWeb
|
|
COMMAND $<TARGET_FILE:headless-browser> --run-tests ${LADYBIRD_SOURCE_DIR}/Tests/LibWeb --dump-failed-ref-tests --per-test-timeout 120
|
|
)
|
|
endif()
|