performous/performous — pull request #113 by apoleon (2014-11-02 12:21:45+00:00)
Title: fix imagemagick detection on Debian

Currently the detection of Imagemagick libraries on Debian and probably other UNIX systems is broken. We need to do something similar here as we do already for APPLE. Try to detect whether the package ImageMagick with its component Magick++ exists but then also try to check with PkgConfig whether the library is installed in Multiarch directories like /usr/lib/x86_64_linux-gnu/ or /usr/lib/i386-linux-gnu/.

I can confirm this works for Debian, ImageMagick is detetected and the ss_extract and ss_cover_conv binaries are built again. I took the liberty to use TABS more consistently. The relevant part is

find_package(ImageMagick COMPONENTS Magick++)
find_package(PkgConfig)
PKG_CHECK_MODULES(IMAGEMAGICK Magick++ MagickWand MagickCore)

This shouldn't cause any build failures because these libraries are not required.