mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
It is easy to forget to set this flag on macOS, where doing so causes many tests to fail. So let's just set it via code along with other options to make it a bit more foolproof.
20 lines
581 B
CMake
20 lines
581 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
|
|
)
|
|
endif()
|