- Parameters assigned to ImageMagick::Magick++ will now follow
the 'openshot' shared-library target wherever it's linked, even in
build subdirectories that aren't children or siblings of the
location where the target was created.
- Removed the redundant code duplicating `find_package(ImageMagick)`
checks. Multiple dependency scans have only been necessary as a
workaround to overcome CMake variables' restricted scope.
Targets do not share that limitation.
FindOpenShotAudio.cmake: Enhance with targets
- Also, migrate as much config as possible from CMakeLists.txt files
to properties of IMPORTED OpenShot::Audio target (including platform-
specific configs)
* 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`)