CMake: check for qrcodegen/qrcodegen.h #572

This commit is contained in:
nick black 2020-05-07 17:14:45 -04:00
parent c0c76342a8
commit d09f7c7899
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -59,6 +59,12 @@ pkg_check_modules(SWSCALE REQUIRED libswscale>=5.0)
elseif(${USE_OIIO})
pkg_check_modules(OIIO REQUIRED OpenImageIO>=2.1)
endif()
check_include_file("qrcodegen/qrcodegen.h" HAVE_QRCODEGEN_H)
if("${USE_QRCODEGEN}")
if(NOT "${HAVE_QRCODEGEN_H}")
message(FATAL_ERROR "USE_QRCODEGEN is active, but couldn't find qrcodegen.h")
endif()
endif()
find_library(LIBRT rt)
if(${USE_TESTS})
find_package(doctest 2.3.5 REQUIRED)