new module

This commit is contained in:
Ken Martin 2001-05-04 09:47:58 -04:00
parent 4d9b2f59cc
commit c2715d27ec
1 changed files with 17 additions and 0 deletions

17
Modules/FindJNI.cmake Normal file
View File

@ -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)