mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
19 lines
478 B
CMake
19 lines
478 B
CMake
file(GLOB AK_TEST_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
|
|
|
foreach(source ${AK_TEST_SOURCES})
|
|
get_filename_component(name ${source} NAME_WE)
|
|
add_executable(${name} ${source})
|
|
target_link_libraries(${name} LagomCore)
|
|
add_test(
|
|
NAME ${name}
|
|
COMMAND ${name}
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
set_tests_properties(
|
|
${name}
|
|
PROPERTIES
|
|
FAIL_REGULAR_EXPRESSION
|
|
"FAIL"
|
|
)
|
|
endforeach()
|