[CMake] FindZLIB.cmake

Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA artur.kedzierski at navy.mil
Mon Oct 1 17:41:22 EDT 2007


	Could somebody modify FindZLIB.cmake to search
"/Program Files/zlib" directory for zlib include and lib directories?
This is the default location that CPack generated NSIS installer uses.
	
FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
    /usr/local/include
    /usr/include
    "/Program Files/zlib/include"
)

and then

FIND_LIBRARY(ZLIB_LIBRARY
    NAMES ${ZLIB_NAMES}
    PATHS /usr/lib /usr/local/lib "/Program Files/zlib/lib"
)

having the definitions for zlib would be nice too. I.e.:
SET(ZLIB_DEFINITIONS "-DZLIB_DLL")

--
Artur Kedzierski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071001/258a96af/attachment.htm


More information about the CMake mailing list