Skip to content

Truly independent web browser

LibCrypto: Link unit tests into one executable

Timothy Flynn3f6e5a7f3efc
diff --git a/Tests/LibCrypto/CMakeLists.txt b/Tests/LibCrypto/CMakeLists.txt
index 486ce9cf45c..7e57eb858d6 100644
--- a/Tests/LibCrypto/CMakeLists.txt
+++ b/Tests/LibCrypto/CMakeLists.txt
@@ -1,3 +1,5 @@
+ladybird_test_suite(LibCrypto)
+
set(TEST_SOURCES
TestAES.cpp
TestArgon2.cpp
@@ -17,6 +19,5 @@ set(TEST_SOURCES
TestRSA.cpp
)
-foreach(source IN LISTS TEST_SOURCES)
- ladybird_test("${source}" LibCrypto LIBS LibCrypto)
-endforeach()
+target_sources(TestLibCrypto PRIVATE ${TEST_SOURCES})
+target_link_libraries(TestLibCrypto PRIVATE LibCrypto)