In Linux even though I have libpng installed, ``ccmake`` was telling me it could not find the libpng library.

Given this [http://fedetft.wordpress.com/2010/03/07/cmake-part-3-finding-libraries/,blog] it should be ``PNG`` instead of ``LIBPNG``. I supposed you have an environment variable named ``LIBPNG`` ?