From aa28f1a3fd62f760b842ad8557a0ba62c34ac2b4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 19 Nov 2008 17:04:02 +0000 Subject: [PATCH] Added XUL_DIR searching --- CMakeModules/FindXUL.cmake | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CMakeModules/FindXUL.cmake b/CMakeModules/FindXUL.cmake index 45ed14b6d..3974d4900 100644 --- a/CMakeModules/FindXUL.cmake +++ b/CMakeModules/FindXUL.cmake @@ -102,6 +102,34 @@ FIND_PATH(MOZJS_INCLUDE_DIR jsapi.h /usr/freeware/include ) +FIND_PATH(XUL_DIR + NAMES components/appshell.xpt + PATHS + $ENV{OSG_DIR}/lib + $ENV{OSG_DIR} + $ENV{OSGDIR}/lib + $ENV{OSGDIR} + $ENV{OSG_ROOT}/lib + ~/Library/Frameworks + /Library/Frameworks + /usr/local/lib/xulrunner + /usr/local/lib + /usr/lib/xulrunner + /usr/lib + /sw/lib/xulrunner + /sw/lib + /opt/local/lib/xulrunner + /opt/local/lib + /opt/csw/lib/xulrunner + /opt/csw/lib + /opt/lib/xulrunner + /opt/lib + [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib + /usr/freeware/lib64/xulrunner + /usr/freeware/lib64 +) + + MACRO(FIND_XUL_LIBRARY MYLIBRARY MYLIBRARYNAME) FIND_LIBRARY(${MYLIBRARY}