2026-05-15 10:39:16 +05:30
|
|
|
add_executable(pdfengine_smoke
|
|
|
|
|
smoke_test.cpp
|
2026-06-29 10:51:04 +05:30
|
|
|
font_rendering_test.cpp
|
|
|
|
|
font_loader_descriptor_test.cpp
|
|
|
|
|
font_encoding_test.cpp
|
|
|
|
|
font_types_test.cpp
|
2026-05-22 15:49:10 +05:30
|
|
|
graphics_state_test.cpp
|
|
|
|
|
display_list_test.cpp
|
2026-06-29 10:51:04 +05:30
|
|
|
document_load_test.cpp
|
|
|
|
|
page_render_test.cpp
|
|
|
|
|
document_edit_test.cpp
|
2026-07-30 16:48:46 +05:30
|
|
|
edit_session_test.cpp
|
2026-06-29 10:51:04 +05:30
|
|
|
font_diagnostics_test.cpp
|
|
|
|
|
text_encoding_test.cpp
|
2026-05-25 10:34:39 +05:30
|
|
|
skia_renderer_test.cpp
|
2026-06-16 19:06:48 +05:30
|
|
|
lexer_test.cpp
|
|
|
|
|
parser_test.cpp
|
|
|
|
|
content_builder_test.cpp
|
|
|
|
|
ast_serializer_test.cpp
|
|
|
|
|
content_serializer_test.cpp
|
|
|
|
|
qpdf_writer_test.cpp
|
2026-05-15 10:39:16 +05:30
|
|
|
)
|
|
|
|
|
|
2026-06-16 19:06:48 +05:30
|
|
|
if(PDFENGINE_WITH_QPDF)
|
2026-06-19 17:08:36 +05:30
|
|
|
target_sources(pdfengine_smoke PRIVATE
|
|
|
|
|
qpdf_extractor_test.cpp
|
|
|
|
|
image_xobject_test.cpp
|
|
|
|
|
)
|
2026-06-16 19:06:48 +05:30
|
|
|
endif()
|
|
|
|
|
|
2026-05-15 10:39:16 +05:30
|
|
|
target_link_libraries(pdfengine_smoke
|
|
|
|
|
PRIVATE
|
|
|
|
|
pdfengine::pdfengine
|
|
|
|
|
GTest::gtest
|
|
|
|
|
GTest::gtest_main
|
|
|
|
|
)
|
|
|
|
|
|
2026-05-25 10:34:39 +05:30
|
|
|
if(PDFENGINE_WITH_SKIA)
|
|
|
|
|
target_link_libraries(pdfengine_smoke PRIVATE skia::skia)
|
|
|
|
|
endif()
|
|
|
|
|
|
2026-07-23 11:31:26 +05:30
|
|
|
if(PDFENGINE_WITH_PDFIUM)
|
|
|
|
|
target_link_libraries(pdfengine_smoke PRIVATE pdfium::pdfium)
|
|
|
|
|
endif()
|
|
|
|
|
|
2026-06-19 17:08:36 +05:30
|
|
|
if(PDFENGINE_WITH_QPDF)
|
|
|
|
|
target_link_libraries(pdfengine_smoke PRIVATE qpdf::libqpdf ZLIB::ZLIB JPEG::JPEG)
|
|
|
|
|
endif()
|
|
|
|
|
|
2026-06-16 19:06:48 +05:30
|
|
|
if(MSVC)
|
|
|
|
|
target_link_options(pdfengine_smoke PRIVATE "/FORCE:MULTIPLE")
|
|
|
|
|
endif()
|
|
|
|
|
|
2026-05-21 11:45:41 +05:30
|
|
|
target_include_directories(pdfengine_smoke
|
|
|
|
|
PRIVATE
|
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../src"
|
|
|
|
|
)
|
|
|
|
|
|
2026-05-22 15:47:48 +05:30
|
|
|
set(TEST_CORPUS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../corpus" CACHE PATH "Path to test corpus")
|
|
|
|
|
file(TO_CMAKE_PATH "${TEST_CORPUS_DIR}" TEST_CORPUS_DIR_NORM)
|
|
|
|
|
target_compile_definitions(pdfengine_smoke PRIVATE TEST_CORPUS_DIR="${TEST_CORPUS_DIR_NORM}")
|
|
|
|
|
|
2026-05-15 10:39:16 +05:30
|
|
|
pdfengine_set_warnings(pdfengine_smoke)
|
|
|
|
|
pdfengine_enable_sanitizers(pdfengine_smoke)
|
|
|
|
|
|
2026-06-29 10:51:04 +05:30
|
|
|
gtest_discover_tests(pdfengine_smoke)
|