FindImageMagick: document to how to set a custom path to the upstream build and add imported targets
At current time there is unclear how to proper to set a path to upstream build (which based on autotools and could be installed to some $PREFIX
) and there are no imported targets yet.
I used a “hacking” way to force pkg-config to search the .pc file via PKG_CONFIG_PATH
env. According to cmake-developer(7)
it should respect the <LibraryName>_ROOT_DIR
(or <LibraryName_ROOT>
???), but seems that the inner pkg_check_modules()
doesn’t have the something like HINT
to properly fix it.