Skip to content

Truly independent web browser

LibCompress: Link unit tests into one executable

Timothy Flynnfc84d137218f
diff --git a/Tests/LibCompress/CMakeLists.txt b/Tests/LibCompress/CMakeLists.txt
index dca05002af0..82c3d28b422 100644
--- a/Tests/LibCompress/CMakeLists.txt
+++ b/Tests/LibCompress/CMakeLists.txt
@@ -1,8 +1,9 @@
+ladybird_test_suite(LibCompress)
+
set(TEST_SOURCES
TestDeflate.cpp
TestZlib.cpp
)
-foreach(source IN LISTS TEST_SOURCES)
- ladybird_test("${source}" LibCompress LIBS LibCompress)
-endforeach()
+target_sources(TestLibCompress PRIVATE ${TEST_SOURCES})
+target_link_libraries(TestLibCompress PRIVATE LibCompress)