diff --git a/CMakeLists.txt b/CMakeLists.txt index eb364d9..5f5ba7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,18 +181,22 @@ use_external_library_from_package( AUTO_LINKAGE REQUIRED ) -# crypto (for tests) +# crypto (optional for testing integrity of testfiles) find_external_library_from_package( crypto OpenSSL ANY_VERSION OPENSSL_INCLUDE_DIR OPENSSL_CRYPTO_LIBRARY AUTO_LINKAGE - REQUIRED + OPTIONAL ) link_tests_against_library( - crypto AUTO_LINKAGE REQUIRED + crypto AUTO_LINKAGE OPTIONAL ) +if(NOT USE_crypto) + list(REMOVE_ITEM TEST_SRC_FILES tests/testfilecheck.cpp) + message(WARNING "Unable to check testfile integrity because OpenSSL is not available.") +endif() # include modules to apply configuration include(BasicConfig) diff --git a/README.md b/README.md index 0fd163e..aaf3173 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,8 @@ API documentation can be generated using Doxygen with `make tagparser_apidoc`. ## Build instructions The tagparser library depends on c++utilities and is built in the same way. -It also depends on zlib. +It also depends on zlib. For checking integrity of testfiles, the OpenSSL crypto +library is required. ## TODO - Support more formats (EXIF, PDF metadata, Theora, ...)