|
From: <rus...@us...> - 2008-02-09 02:34:49
|
Revision: 53
http://gearbox.svn.sourceforge.net/gearbox/?rev=53&view=rev
Author: russo2503v
Date: 2008-02-08 18:34:54 -0800 (Fri, 08 Feb 2008)
Log Message:
-----------
sample script to find gearbox
Added Paths:
-----------
gearbox/trunk/cmake/FindGearbox.cmake
Added: gearbox/trunk/cmake/FindGearbox.cmake
===================================================================
--- gearbox/trunk/cmake/FindGearbox.cmake (rev 0)
+++ gearbox/trunk/cmake/FindGearbox.cmake 2008-02-09 02:34:54 UTC (rev 53)
@@ -0,0 +1,24 @@
+# Locate Gearbox installation
+
+# This module defines
+# GEARBOX_HOME where to find include, lib, bin, etc.
+# GEARBOX_FOUND, If set to 0, don't try to use Gearbox libraries, scripts, etc.
+#
+# We look for the cmake manifest file generated by Gearbox.
+
+# start with 'not found'
+SET( GEARBOX_FOUND 0 CACHE BOOL "Do we have Gearbox?" )
+
+FIND_PATH( GEARBOX_HOME gearbox_manifest.cmake
+ $ENV{GEARBOX_HOME}
+ # Test standard installation points
+ /usr/local
+ /opt/gearbox
+ C:/gearbox
+ )
+# MESSAGE( STATUS "DEBUG: manifest.cmake is apparently found in : ${GEARBOX_HOME}" )
+
+# NOTE: if GEARBOX_HOME is set to *-NOTFOUND it will evaluate to FALSE
+IF ( GEARBOX_HOME )
+ SET( GEARBOX_FOUND 1 CACHE BOOL "Do we have Gearbox?" FORCE )
+ENDIF ( GEARBOX_HOME )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|