Skip to content

Truly independent web browser

LibTextCodec: Link unit tests into one executable

Timothy Flynneaa4e7e49f09
diff --git a/Tests/LibTextCodec/CMakeLists.txt b/Tests/LibTextCodec/CMakeLists.txt
index 8b8356e32a7..dd284ea7dd2 100644
--- a/Tests/LibTextCodec/CMakeLists.txt
+++ b/Tests/LibTextCodec/CMakeLists.txt
@@ -1,8 +1,9 @@
+ladybird_test_suite(LibTextCodec)
+
set(TEST_SOURCES
TestTextDecoders.cpp
TestTextEncoders.cpp
)
-foreach(source IN LISTS TEST_SOURCES)
- ladybird_test("${source}" LibTextCodec LIBS LibTextCodec)
-endforeach()
+target_sources(TestLibTextCodec PRIVATE ${TEST_SOURCES})
+target_link_libraries(TestLibTextCodec PRIVATE LibTextCodec)