2023-01-09 14:14:42 +13:00
|
|
|
# Copyright (C) 2021-23 Robin Stuart <rstuart114@gmail.com>
|
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
|
|
|
# vim: set ts=4 sw=4 et :
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(QZint_tests LANGUAGES CXX)
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
if(USE_QT6)
|
|
|
|
find_package(Qt6Test REQUIRED)
|
|
|
|
else()
|
|
|
|
find_package(Qt5Test REQUIRED)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
add_executable(test_qzint test_qzint.cpp)
|
|
|
|
target_link_libraries(test_qzint PRIVATE QZint Qt${QT_VERSION_MAJOR}::Test)
|
2023-01-09 14:14:42 +13:00
|
|
|
add_test(NAME qzint COMMAND test_qzint)
|
|
|
|
if(MSVC)
|
|
|
|
set_tests_properties(qzint PROPERTIES ENVIRONMENT
|
|
|
|
"PATH=${CMAKE_BINARY_DIR}/backend/${CMAKE_BUILD_TYPE}\;${CMAKE_BINARY_DIR}/frontend/${CMAKE_BUILD_TYPE}\;$ENV{PATH}")
|
|
|
|
else()
|
|
|
|
set_tests_properties(qzint PROPERTIES ENVIRONMENT
|
|
|
|
"LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/backend;PATH=${CMAKE_BINARY_DIR}/frontend:$ENV{PATH}")
|
|
|
|
endif()
|