Skip to content

Truly independent web browser

LibTLS: Link unit tests into one executable

Timothy Flynnefdf87d6c794
diff --git a/Tests/LibTLS/CMakeLists.txt b/Tests/LibTLS/CMakeLists.txt
index a015101a613..1ca6698c49f 100644
--- a/Tests/LibTLS/CMakeLists.txt
+++ b/Tests/LibTLS/CMakeLists.txt
@@ -1,8 +1,9 @@
+ladybird_test_suite(LibTLS)
+
set(TEST_SOURCES
TestTLSCertificateParser.cpp
TestTLSHandshake.cpp
)
-foreach(source IN LISTS TEST_SOURCES)
- ladybird_test("${source}" LibTLS LIBS LibTLS LibCrypto)
-endforeach()
+target_sources(TestLibTLS PRIVATE ${TEST_SOURCES})
+target_link_libraries(TestLibTLS PRIVATE LibTLS LibCrypto)