summaryrefslogtreecommitdiffstats
path: root/Modules/FindJNI.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-04 13:47:58 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-04 13:47:58 (GMT)
commitc2715d27eccdd78bb19e9be6395a07a97b75cede (patch)
tree8e9c3c2d4d4920eef4d944f74ae033c21cc2c7c6 /Modules/FindJNI.cmake
parent4d9b2f59cc4da52e93b6a5d647dba06828d258f3 (diff)
downloadCMake-c2715d27eccdd78bb19e9be6395a07a97b75cede.zip
CMake-c2715d27eccdd78bb19e9be6395a07a97b75cede.tar.gz
CMake-c2715d27eccdd78bb19e9be6395a07a97b75cede.tar.bz2
new module
Diffstat (limited to 'Modules/FindJNI.cmake')
-rw-r--r--Modules/FindJNI.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake
new file mode 100644
index 0000000..62de5dc
--- /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)
+
+