Skip to content

Truly independent web browser

LibURL: Link unit tests into one executable

Timothy Flynn6ef33505e31a
diff --git a/Tests/LibURL/CMakeLists.txt b/Tests/LibURL/CMakeLists.txt
index b7711936e0d..33cd8b467e8 100644
--- a/Tests/LibURL/CMakeLists.txt
+++ b/Tests/LibURL/CMakeLists.txt
@@ -1,9 +1,10 @@
+ladybird_test_suite(LibURL)
+
set(URL_TEST_SOURCES
+ TestPublicSuffix.cpp
TestURL.cpp
TestURLPattern.cpp
- TestPublicSuffix.cpp
)
-foreach(source IN LISTS URL_TEST_SOURCES)
- ladybird_test("${source}" LibURL LIBS LibURL LibRegex)
-endforeach()
+target_sources(TestLibURL PRIVATE ${URL_TEST_SOURCES})
+target_link_libraries(TestLibURL PRIVATE LibURL LibRegex)