Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/frontend/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) 2008 by BogDan Vatra < bogdan@licentia.eu > | |
| 2 # Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com> | |
| 3 # vim: set ts=4 sw=4 et : | |
| 4 | |
| 5 cmake_minimum_required(VERSION 3.10) | |
| 6 project(zint_frontend) | |
| 7 | |
| 8 add_executable(${PROJECT_NAME} main.c) | |
| 9 | |
| 10 if(WIN32) | |
| 11 target_sources(${PROJECT_NAME} PRIVATE zint.rc) | |
| 12 endif() | |
| 13 | |
| 14 target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../backend") | |
| 15 | |
| 16 set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "zint") | |
| 17 | |
| 18 if(ZINT_SHARED) | |
| 19 target_link_libraries(${PROJECT_NAME} zint) | |
| 20 else() | |
| 21 target_link_libraries(${PROJECT_NAME} zint-static) | |
| 22 endif() | |
| 23 if(NOT HAVE_GETOPT_LONG_ONLY) | |
| 24 target_link_libraries(${PROJECT_NAME} zint_bundled_getopt) | |
| 25 endif() | |
| 26 | |
| 27 install(TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME) | |
| 28 if(UNIX) | |
| 29 install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../docs/zint.1" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1" COMPONENT doc) | |
| 30 endif() | |
| 31 | |
| 32 if(ZINT_TEST) | |
| 33 add_subdirectory(tests) | |
| 34 endif() |
