mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-02 09:47:21 +00:00
CLI: add ZINT_TEST-only "--test" option (currently just ensures
the barcode name table is sorted so binary chop works), adding `ZINT_HAVE_GS1SE` define to "zint_add_test.cmake" - allows `test_barcode_symbology()` in "test_args.c" to be a lot less verbose; `const`-up various variables; manual: use better MAILMAKE_4S example data and mention special fixed string international destination
This commit is contained in:
@@ -11,6 +11,9 @@ macro(zint_add_test test_name test_command)
|
||||
if(NOT (ZINT_USE_PNG AND PNG_FOUND))
|
||||
target_compile_definitions(${test_command} PRIVATE ZINT_NO_PNG)
|
||||
endif()
|
||||
if(ZINT_USE_GS1SE AND GS1SE)
|
||||
target_compile_definitions(${test_command} PRIVATE ZINT_HAVE_GS1SE)
|
||||
endif()
|
||||
add_test(${test_name} ${test_command})
|
||||
|
||||
if(MSVC)
|
||||
@@ -28,6 +31,9 @@ macro(zint_add_test test_name test_command)
|
||||
if(NOT (ZINT_USE_PNG AND PNG_FOUND))
|
||||
target_compile_definitions(${test_command}-static PRIVATE ZINT_NO_PNG)
|
||||
endif()
|
||||
if(ZINT_USE_GS1SE AND GS1SE)
|
||||
target_compile_definitions(${test_command}-static PRIVATE ZINT_HAVE_GS1SE)
|
||||
endif()
|
||||
add_test(${test_name}-static ${test_command}-static)
|
||||
if(MSVC)
|
||||
string(REPLACE ";" "\\;" env_path "$ENV{PATH}")
|
||||
|
||||
Reference in New Issue
Block a user