From 04bea1b10fa0da5779be34f56361a05ed1fd610e Mon Sep 17 00:00:00 2001 From: dhewg Date: Wed, 4 Jul 2012 17:46:41 +0200 Subject: [PATCH] Use system zlib --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 792d741..fdc604d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,6 +76,9 @@ if (DHEWM3LIBS) endif() # libs +find_package(ZLIB REQUIRED) +include_directories(${ZLIB_INCLUDE_DIRS}) + find_package(JPEG REQUIRED) include_directories(${JPEG_INCLUDE_DIR}) @@ -734,6 +737,7 @@ if (CORE) ${VORBIS_LIBRARIES} ${CURL_LIBRARY} ${JPEG_LIBRARY} + ${ZLIB_LIBRARY} ${SDL_LIBRARY} ${sys_libs} ) @@ -765,6 +769,7 @@ if (DEDICATED) ${VORBIS_LIBRARIES} ${CURL_LIBRARY} ${JPEG_LIBRARY} + ${ZLIB_LIBRARY} ${SDL_LIBRARY} ${sys_libs} )