Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/backend/tests/CMakeLists.txt @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 # Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com> | |
| 2 # Adapted from qrencode/tests/CMakeLists.txt | |
| 3 # Copyright (C) 2006-2017 Kentaro Fukuchi <kentaro@fukuchi.org> | |
| 4 # vim: set ts=4 sw=4 et : | |
| 5 | |
| 6 cmake_minimum_required(VERSION 3.10) | |
| 7 project(zint_backend_tests) | |
| 8 | |
| 9 enable_testing() | |
| 10 | |
| 11 include(${zint-package_SOURCE_DIR}/cmake/zint_add_test.cmake) | |
| 12 | |
| 13 set(BWIPP_TAR ${CMAKE_CURRENT_SOURCE_DIR}/tools/bwipp_dump.ps.tar.xz) | |
| 14 set(BWIPP_PS ${CMAKE_CURRENT_BINARY_DIR}/tools/bwipp_dump.ps) | |
| 15 | |
| 16 if(NOT EXISTS ${BWIPP_PS}) | |
| 17 file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tools) | |
| 18 execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xf ${BWIPP_TAR} | |
| 19 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tools) | |
| 20 endif() | |
| 21 | |
| 22 set(testcommon_SRCS testcommon.c testcommon.h) | |
| 23 | |
| 24 if(ZINT_SHARED) | |
| 25 add_library(testcommon ${testcommon_SRCS}) | |
| 26 target_link_libraries(testcommon zint) | |
| 27 target_include_directories(testcommon PUBLIC ${zint_backend_tests_SOURCE_DIR}) | |
| 28 if(NOT (ZINT_USE_PNG AND PNG_FOUND)) | |
| 29 target_compile_definitions(testcommon PRIVATE ZINT_NO_PNG) | |
| 30 endif() | |
| 31 endif() | |
| 32 | |
| 33 if(ZINT_STATIC) | |
| 34 add_library(testcommon-static ${testcommon_SRCS}) | |
| 35 target_link_libraries(testcommon-static zint-static) | |
| 36 target_include_directories(testcommon-static PUBLIC ${zint_backend_tests_SOURCE_DIR}) | |
| 37 if(NOT (ZINT_USE_PNG AND PNG_FOUND)) | |
| 38 target_compile_definitions(testcommon-static PRIVATE ZINT_NO_PNG) | |
| 39 endif() | |
| 40 endif() | |
| 41 | |
| 42 zint_add_test(2of5 test_2of5) | |
| 43 zint_add_test(auspost test_auspost) | |
| 44 zint_add_test(aztec test_aztec) | |
| 45 zint_add_test(bc412 test_bc412) | |
| 46 zint_add_test(big5 test_big5) | |
| 47 zint_add_test(bmp test_bmp) | |
| 48 zint_add_test(channel test_channel) | |
| 49 zint_add_test(codablock test_codablock) | |
| 50 zint_add_test(code test_code) | |
| 51 zint_add_test(code1 test_code1) | |
| 52 zint_add_test(code128 test_code128) | |
| 53 zint_add_test(code16k test_code16k) | |
| 54 zint_add_test(code49 test_code49) | |
| 55 zint_add_test(common test_common) | |
| 56 zint_add_test(composite test_composite) | |
| 57 zint_add_test(dmatrix test_dmatrix) | |
| 58 zint_add_test(dotcode test_dotcode) | |
| 59 zint_add_test(dxfilmedge test_dxfilmedge) | |
| 60 zint_add_test(eci test_eci) | |
| 61 zint_add_test(emf test_emf) | |
| 62 zint_add_test(filemem test_filemem) | |
| 63 zint_add_test(gb18030 test_gb18030) | |
| 64 zint_add_test(gb2312 test_gb2312) | |
| 65 zint_add_test(gif test_gif) | |
| 66 zint_add_test(gridmtx test_gridmtx) | |
| 67 zint_add_test(gs1 test_gs1) | |
| 68 zint_add_test(hanxin test_hanxin) | |
| 69 zint_add_test(imail test_imail) | |
| 70 zint_add_test(iso3166 test_iso3166) | |
| 71 zint_add_test(iso4217 test_iso4217) | |
| 72 zint_add_test(ksx1001 test_ksx1001) | |
| 73 zint_add_test(large test_large) | |
| 74 zint_add_test(library test_library) | |
| 75 zint_add_test(mailmark test_mailmark) | |
| 76 zint_add_test(maxicode test_maxicode) | |
| 77 zint_add_test(medical test_medical) | |
| 78 zint_add_test(output test_output) | |
| 79 zint_add_test(pcx test_pcx) | |
| 80 zint_add_test(pdf417 test_pdf417) | |
| 81 zint_add_test(plessey test_plessey) | |
| 82 if(ZINT_USE_PNG AND PNG_FOUND) | |
| 83 zint_add_test(png test_png) | |
| 84 endif() | |
| 85 zint_add_test(postal test_postal) | |
| 86 zint_add_test(print test_print) | |
| 87 zint_add_test(ps test_ps) | |
| 88 zint_add_test(qr test_qr) | |
| 89 zint_add_test(raster test_raster) | |
| 90 zint_add_test(reedsol test_reedsol) | |
| 91 zint_add_test(rss test_rss) | |
| 92 zint_add_test(sjis test_sjis) | |
| 93 zint_add_test(svg test_svg) | |
| 94 zint_add_test(telepen test_telepen) | |
| 95 zint_add_test(tif test_tif) | |
| 96 zint_add_test(ultra test_ultra) | |
| 97 zint_add_test(upcean test_upcean) | |
| 98 zint_add_test(vector test_vector) |
