浏览代码

Lagom: Execute `LibPDF` unit tests on the host

Add lagom unit tests for `LibPDF`.
Simon Woertz 3 年之前
父节点
当前提交
47f4e54cdc
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Meta/Lagom/CMakeLists.txt

+ 6 - 0
Meta/Lagom/CMakeLists.txt

@@ -548,6 +548,12 @@ if (BUILD_LAGOM)
             lagom_test(${source} LIBS LagomGL)
             lagom_test(${source} LIBS LagomGL)
         endforeach()
         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
         # Regex
         file(GLOB LIBREGEX_TESTS CONFIGURE_DEPENDS "../../Tests/LibRegex/*.cpp")
         file(GLOB LIBREGEX_TESTS CONFIGURE_DEPENDS "../../Tests/LibRegex/*.cpp")
         # RegexLibC test POSIX <regex.h> and contains many Serenity extensions
         # RegexLibC test POSIX <regex.h> and contains many Serenity extensions