From 47f4e54cdc8c5aea81cbfc4a18a5ecb147a34a9c Mon Sep 17 00:00:00 2001 From: Simon Woertz Date: Sun, 21 Nov 2021 20:24:19 +0100 Subject: [PATCH] Lagom: Execute `LibPDF` unit tests on the host Add lagom unit tests for `LibPDF`. --- Meta/Lagom/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index a4aa83d1b57956..b953f079dc2009 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -548,6 +548,12 @@ if (BUILD_LAGOM) lagom_test(${source} LIBS LagomGL) endforeach() + # PDF + file(GLOB LIBPDF_TESTS CONFIGURE_DEPENDS "../../Tests/LibPDF/*.cpp") + foreach(source ${LIBPDF_TESTS}) + lagom_test(${source} LIBS LagomPDF WORKING_DIRECTORY ${SERENITY_PROJECT_ROOT}/Base/home/anon/Documents/pdf/) + endforeach() + # Regex file(GLOB LIBREGEX_TESTS CONFIGURE_DEPENDS "../../Tests/LibRegex/*.cpp") # RegexLibC test POSIX and contains many Serenity extensions