]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STARLIGHT/starlight/cmake_modules/.svn/text-base/FindPythia6.cmake.svn-base
STARLIGHT code and interface
[u/mrichter/AliRoot.git] / STARLIGHT / starlight / cmake_modules / .svn / text-base / FindPythia6.cmake.svn-base
diff --git a/STARLIGHT/starlight/cmake_modules/.svn/text-base/FindPythia6.cmake.svn-base b/STARLIGHT/starlight/cmake_modules/.svn/text-base/FindPythia6.cmake.svn-base
new file mode 100644 (file)
index 0000000..ca2b73b
--- /dev/null
@@ -0,0 +1,23 @@
+
+MESSAGE(STATUS "$PYTHIADIR: $ENV{PYTHIADIR}")
+FIND_LIBRARY(PYTHIA6_LIBRARY NAMES Pythia6 PATHS $ENV{PYTHIADIR} /usr/lib /usr/lib64 /usr/local/lib )
+
+IF (PYTHIA6_LIBRARY)
+   SET(PYTHIA6_FOUND TRUE)
+ENDIF (PYTHIA6_LIBRARY)
+
+IF (PYTHIA6_FOUND)
+   IF (NOT Pythia6_FIND_QUIETLY)
+      MESSAGE(STATUS "Found Pythia6: ${PYTHIA6_LIBRARY}")
+   ENDIF (NOT Pythia6_FIND_QUIETLY)
+ELSE (PYTHIA6_FOUND)
+   IF (Pythia6_FIND_REQUIRED)
+      MESSAGE(FATAL_ERROR "Could not find Pythia6. We search first in $PYTHIADIR, then in the normal library paths.")
+   ELSE(Pythia6_FIND_REQUIRED)
+      IF(NOT Pythia6_FIND_QUIETLY)
+         MESSAGE(STATUS "Could not find Pythia6. We search first in $PYTHIADIR, then in the normal library paths.")
+      ENDIF(NOT Pythia6_FIND_QUIETLY)
+   ENDIF (Pythia6_FIND_REQUIRED)
+   
+ENDIF (PYTHIA6_FOUND)
+