Also, use the target name introduced via find_package(ZLIB) instead of hardcoding the 'z' name in the link libraries.