2021-06-25 05:31:08 +12:00
|
|
|
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
|
|
# Copyright (C) 2009-2021 Robin Stuart <rstuart114@gmail.com>
|
|
|
|
# vim: set ts=4 sw=4 et :
|
|
|
|
|
|
|
|
project(QZint)
|
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
set(${PROJECT_NAME}_SRCS qzint.cpp)
|
2021-06-25 05:31:08 +12:00
|
|
|
|
|
|
|
if(USE_QT6)
|
|
|
|
qt6_wrap_cpp(QZint_SRCS qzint.h)
|
|
|
|
else()
|
|
|
|
qt5_wrap_cpp(QZint_SRCS qzint.h)
|
|
|
|
endif()
|
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
add_library(${PROJECT_NAME} STATIC ${QZint_SRCS})
|
2021-06-25 05:31:08 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}"
|
2021-06-25 05:31:08 +12:00
|
|
|
VERSION ${ZINT_VERSION})
|
|
|
|
|
2023-10-17 20:19:49 +13:00
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../backend")
|
2021-06-25 05:31:08 +12:00
|
|
|
|
2022-11-22 00:41:29 +13:00
|
|
|
if(ZINT_SHARED)
|
|
|
|
target_link_libraries(${PROJECT_NAME} zint)
|
|
|
|
else()
|
|
|
|
target_link_libraries(${PROJECT_NAME} zint-static)
|
|
|
|
endif()
|
|
|
|
target_link_libraries(${PROJECT_NAME} Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Gui)
|
2021-06-25 05:31:08 +12:00
|
|
|
|
2021-11-24 01:10:58 +13:00
|
|
|
if(ZINT_TEST)
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2021-06-25 05:31:08 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
install(TARGETS ${PROJECT_NAME} ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2021-06-25 05:31:08 +12:00
|
|
|
install(FILES qzint.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|