# #zlib # ExternalProject_Add ( zlib PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 #When running configure, the current directory must be the source directory URL http://sourceforge.net/projects/libpng/files/zlib/1.2.7/zlib-1.2.7.tar.bz2 URL_MD5 2ab442d169156f34c379c968f3f482dd CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} )