Draft: FindImageMagick: modernize Find-module according to cmake-developer(7) guides
-
Add imported targets; -
Update documentation; -
Pass-through compile_definitions
from .pc to imported targets andImageMagick_${component}_FLAGS
(?); -
Use FindOpenMP
if any related flag (-fopenmp
) has been found in.pc
flags; -
Create cache variable ImageMagick_ROOT_DIR
(according to cmake-developer(7)'s Standard Variable Names (???? there are no way to pass-through it topkg_check_modules()
???); -
Deal with Windows IMPLIB_LOCATION
vsIMPORTED_LOCATION
(??????);
Edited by Alex