[cig-commits] r11242 - cs/benchmark/cigma/trunk/scratch/cg/CMake

luis at geodynamics.org luis at geodynamics.org
Tue Feb 26 04:51:51 PST 2008


Author: luis
Date: 2008-02-26 04:51:51 -0800 (Tue, 26 Feb 2008)
New Revision: 11242

Added:
   cs/benchmark/cigma/trunk/scratch/cg/CMake/FindZLIB.cmake
Log:
Added cmake script to locate zlib library (required for HDF5)


Added: cs/benchmark/cigma/trunk/scratch/cg/CMake/FindZLIB.cmake
===================================================================
--- cs/benchmark/cigma/trunk/scratch/cg/CMake/FindZLIB.cmake	                        (rev 0)
+++ cs/benchmark/cigma/trunk/scratch/cg/CMake/FindZLIB.cmake	2008-02-26 12:51:51 UTC (rev 11242)
@@ -0,0 +1,25 @@
+#
+# Find the native ZLIB includes and library
+#
+# ZLIB_INCLUDE_DIR  - Where to find zlib.h, etc
+# ZLIB_LIBRARIES    - List of fully qualified libraries to link against when using zlib.
+# ZLIB_FOUND        - Do not attempt to use zlib if "no" or undefined
+#
+
+FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
+    /usr/local/include
+    /usr/include
+)
+
+FIND_LIBRARY(ZLIB_LIBRARY z
+    /usr/lib
+    /usr/local/lib
+)
+
+IF(ZLIB_INCLUDE_DIR)
+    IF(ZLIB_LIBRARY)
+        SET(ZLIB_LIBRARIES ${ZLIB_LIBRARY})
+        SET(ZLIB_FOUND "YES")
+    ENDIF(ZLIB_LIBRARY)
+ENDIF(ZLIB_INCLUDE_DIR)
+



More information about the cig-commits mailing list