[devel] Various bugfixes and improvements to CMakeLists.txt (Philip Lowman)

1. Modify project(PNG) to project(PNG C) to avoid search for C++ compiler
2. set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) and fix end conditionals
from ugly else(FOO AND BAR) endif(FOO AND BAR) to else() endif()
3. Add missing include_directories() for ZLIB_INCLUDE_DIR
4. Created CMake options to allow configurable building of STATIC or SHARED
libpng, both default on.
5. Modified PNG_DEBUG to default to false?
6. Fix installation of static/shared libraries so DLL goes in prefix+/bin,
all others in prefix+/lib
diff --git a/CHANGES b/CHANGES
index 3079a1a..d1bc572 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2214,9 +2214,11 @@
 version 1.4.0beta76 [August 22, 2009]
   Moved an incorrectly located test in png_read_row() in pngread.c
 
-version 1.4.0beta77 [August 26, 2009]
+version 1.4.0beta77 [August 27, 2009]
   Removed lpXYZ.tar.bz2 (with CRLF), KNOWNBUG, libpng-x.y.z-KNOWNBUG.txt,
     and the "noconfig" files from the distribution.
+  Moved CMakeLists.txt from scripts into the main libpng directory.
+  Various bugfixes and improvements to CMakeLists.txt (Philip Lowman)
 
 version 1.4.0betaN [future]
   Build shared libraries with -lz and sometimes -lm.