From c2715d27eccdd78bb19e9be6395a07a97b75cede Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 4 May 2001 09:47:58 -0400 Subject: [PATCH] new module --- Modules/FindJNI.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Modules/FindJNI.cmake diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake new file mode 100644 index 000000000..62de5dc37 --- /dev/null +++ b/Modules/FindJNI.cmake @@ -0,0 +1,17 @@ +# +# This module finds if Java is installed and determines where the +# include files and libraries are. It also determines what the name of +# the library is. This code sets the following variables: +# +# JAVA_AWT_LIB_PATH = the path to where the jawt library is +# JAVA_INCLUDE_PATH = the path to where jni.h can be found +# JAVA_AWT_INCLUDE_PATH = the path to where jni.h can be found +# + +FIND_LIBRARY(JAVA_AWT_LIB_PATH jawt /usr/lib /usr/local/lib) + +# add in the include path +FIND_PATH(JAVA_INCLUDE_PATH jni.h /usr/include /usr/local/include) +FIND_PATH(JAVE_AWT_INCLUDE_PATH jawt.h /usr/include /usr/local/include) + +