Uses CodeCoverage.cmake from [1] to build libopenshot with gcov
support. Option ENABLE_COVERAGE enables this and sets a target
test_coverage which builds and runs openshot-tests and collects
coverage information into a html report
[1]: https://github.com/bilke/cmake-modules/blob/master/CodeCoverage.cmake
* Version checking!
- Supports EXACT
(but only for M.N.B, e.g. 0.1.8-dev1 matches 0.1.8 EXACT)
- REQUIRED will now cause CMake to abort if version is not
sufficient (lower than requested)
- Outputs the following:
- Version requested, if set
- Version found, if successfully parsed from header
- Compatibility status, if version set on both ends
* Accept `LIBOPENSHOT_AUDIO_DIR` cache variable, in addition to
the environment variable (for `cmake -DLIBOPENSHOT_AUDIO_DIR=...`)
* Do two-stage search for both headers and libs
(Avoids this situation...)
LIBOPENSHOT_AUDIO_INCLUDE_DIRS=/usr/include/libopenshot-audio
LIBOPENSHOT_AUDIO_LIBRARY=/home/ferd/build/
(Largely inspired by CMake's `FindPythonLibs.cmake`)
There was a bug in the definition of `DOXYFILE_LATEX`, and _another_
in the processing of it (which were the only reason it wasn't
defaulting on, the way it appeared to be configured), fixed the
bug and changed it to default OFF. But now it _can_ be enabled.
Also moved the handling of `DOXYFILE_DOT` out of the latex-only
section, so that it can be turned on with the new config variable
`DOXYFILE_USE_DOT` (default on). If `DOXYFILE_USE_DOT` is enabled
and the `dot` executable is found, `DOXYFILE_DOT` will be set "YES"
and `dot` will be used for the HTML as well, giving better graphs.