mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-24 03:56:56 -04:00
backend/tests/CMakeLists.txt: cmake min 3.18 -> 3.9, bwipp_dump.ps tar (#235)
This commit is contained in:
parent
3046690d98
commit
d7d787383e
2 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
# Copyright (C) 2006-2017 Kentaro Fukuchi <kentaro@fukuchi.org>
|
||||
# vim: set ts=4 sw=4 et :
|
||||
|
||||
cmake_minimum_required(VERSION 3.18)
|
||||
cmake_minimum_required(VERSION 3.9)
|
||||
project(zint_backend_tests)
|
||||
|
||||
enable_testing()
|
||||
|
@ -11,10 +11,12 @@ enable_testing()
|
|||
include(${zint-package_SOURCE_DIR}/cmake/zint_add_test.cmake)
|
||||
|
||||
set(BWIPP_TAR ${CMAKE_CURRENT_SOURCE_DIR}/tools/bwipp_dump.ps.tar.xz)
|
||||
set(BWIPP_PS ${CMAKE_BINARY_SOURCE_DIR}/tools/bwipp_dump.ps)
|
||||
set(BWIPP_PS ${CMAKE_CURRENT_BINARY_DIR}/tools/bwipp_dump.ps)
|
||||
|
||||
if(NOT EXISTS ${BWIPP_PS})
|
||||
file(ARCHIVE_EXTRACT INPUT ${BWIPP_TAR} DESTINATION tools)
|
||||
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tools)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xf ${BWIPP_TAR}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tools)
|
||||
endif()
|
||||
|
||||
set(testcommon_SRCS testcommon.c testcommon.h)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue