Make crypto optional and document it

This commit is contained in:
Martchus 2017-04-15 23:21:16 +02:00
parent 9a94d5480f
commit 1dc9071036
2 changed files with 9 additions and 4 deletions

View File

@ -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)

View File

@ -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, ...)