Added FindGnuBarcode cmake module.

This commit is contained in:
Jim Evins
2017-05-24 19:33:39 -04:00
parent df5b977853
commit 662d7a9ef5
4 changed files with 41 additions and 1 deletions
+7
View File
@@ -52,6 +52,7 @@ find_package(ZLIB 1.2 REQUIRED)
#
# Optional dependencies
#
find_package (GnuBarcode QUIET)
find_package (LibQrencode QUIET)
@@ -77,6 +78,12 @@ message (STATUS "C++ Compiler ............ " ${CMAKE_CXX_COMPILER_ID} " " ${CMAK
message (STATUS "Qt version .............. " ${Qt5Core_VERSION})
message (STATUS "zlib version ............ " ${ZLIB_VERSION_STRING})
if (GNUBARCODE_FOUND)
message (STATUS "GNU Barcode (optional)... " ${GNUBARCODE_VERSION_STRING})
else (GNUBARCODE_FOUND)
message (STATUS "GNU Barcode (optional)... No.")
endif (GNUBARCODE_FOUND)
if (LIBQRENCODE_FOUND)
message (STATUS "qrencode (optional)...... " ${LIBQRENCODE_VERSION_STRING})
else (LIBQRENCODE_FOUND)