mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
21 lines
687 B
CMake
21 lines
687 B
CMake
set(SOURCES
|
|
${LADYBIRD_SOURCES}
|
|
Application.cpp
|
|
Fixture.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})
|
|
target_link_libraries(headless-browser PRIVATE ${LADYBIRD_LIBS} LibDiff)
|
|
|
|
if (BUILD_TESTING)
|
|
find_package(Python3 REQUIRED)
|
|
add_test(
|
|
NAME LibWeb
|
|
COMMAND $<TARGET_FILE:headless-browser> --run-tests ${LADYBIRD_SOURCE_DIR}/Tests/LibWeb --python-executable ${Python3_EXECUTABLE} --dump-failed-ref-tests --per-test-timeout 120
|
|
)
|
|
endif()
|