Add ImageMagick link to CMakeLists.txt