#220 backend/tests cmake: Use PNG::PNG for libpng (cf #213), props Schaich Alonso

This commit is contained in:
gitlost 2021-03-08 12:34:34 +00:00
parent 6b7b5109b9
commit d81b5db271
3 changed files with 10 additions and 6 deletions

View file

@ -1,6 +1,6 @@
/*
libzint - the open source barcode library
Copyright (C) 2020 Robin Stuart <rstuart114@gmail.com>
Copyright (C) 2020 - 2021 Robin Stuart <rstuart114@gmail.com>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
@ -90,6 +90,9 @@ static void test_print(int index, int generate, int debug) {
}
for (int j = 0; j < exts_len; j++) {
#ifdef NO_PNG
if (strcmp(exts[j], "png") == 0) continue;
#endif
strcpy(data_dir, "../data/print/");
strcat(data_dir, exts[j]);