From c045f956a74dd0068f75edafeecac70e7cef0953 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Tue, 16 Jul 2013 21:20:38 -0700 Subject: Fixed #8: When the attachment is a folder, the folder is compressed and the attachment is the compressed file. --- src/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 02e53494..3c368309 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -133,6 +133,24 @@ else() endif() +# detect zlib + +find_path(ZLIB_INCLUDE_DIR + NAMES zlib.h + PATHS ${additional_includes} +) +find_library(ZLIB_LIBRARY + NAMES z + PATHS ${additional_lib_searchpath} +) + +if(NOT ZLIB_INCLUDE_DIR OR NOT ZLIB_LIBRARY) + message(FATAL_ERROR "ERROR: Could not find zlib") +else() + message(STATUS "Found zlib") +endif() + + file(GLOB_RECURSE source_files *.h -- cgit v1.2.3