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

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


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

Added:
   cs/benchmark/cigma/trunk/scratch/cg/CMake/FindCigma.cmake
Log:
Added cmake script for locating cigma library


Added: cs/benchmark/cigma/trunk/scratch/cg/CMake/FindCigma.cmake
===================================================================
--- cs/benchmark/cigma/trunk/scratch/cg/CMake/FindCigma.cmake	                        (rev 0)
+++ cs/benchmark/cigma/trunk/scratch/cg/CMake/FindCigma.cmake	2008-02-26 12:51:52 UTC (rev 11243)
@@ -0,0 +1,24 @@
+#
+# Find the cigma includes and library
+#
+#
+
+FIND_PATH(CIGMA_INCLUDE_DIR h5io.h
+    $ENV{CIGMA_HOME}/h5io
+    /usr/local/include
+    /usr/include
+)
+
+FIND_LIBRARY(CIGMA_LIBRARY h5io
+    $ENV{CIGMA_HOME}/lib
+    /usr/local/lib
+    /usr/lib
+)
+
+IF(CIGMA_INCLUDE_DIR)
+    IF(CIGMA_LIBRARY)
+        SET(CIGMA_LIBRARIES ${CIGMA_LIBRARY})
+        SET(CIGMA_FOUND "YES")
+    ENDIF(CIGMA_LIBRARY)
+ENDIF(CIGMA_INCLUDE_DIR)
+



More information about the cig-commits mailing list