FIX: GLU and GLUT flags for Mac OSX
[cmake.git] / Modules / FindJNI.cmake
blobeb6523b4a06717ebf8045c0df64a1258b312aede
2 # This module finds if Java is installed and determines where the
3 # include files and libraries are. It also determines what the name of
4 # the library is. This code sets the following variables:
6 #  JAVA_AWT_LIB_PATH     = the path to where the jawt library is
7 #  JAVA_INCLUDE_PATH     = the path to where jni.h can be found
8 #  JAVA_AWT_INCLUDE_PATH = the path to where jni.h can be found
9
11 FIND_LIBRARY(JAVA_AWT_LIBRARY jawt 
12   PATHS /usr/lib /usr/local/lib
13   "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/lib"
16 # add in the include path    
17 FIND_PATH(JAVA_INCLUDE_PATH jni.h 
18   /usr/include 
19   /usr/local/include
20   "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
23 FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h 
24   ${JAVA_INCLUDE_PATH}/win32
25   ${JAVA_INCLUDE_PATH}/linux
28 FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h ${JAVA_INCLUDE_PATH} )
30 MARK_AS_ADVANCED(
31   JAVA_AWT_LIBRARY
32   JAVA_AWT_INCLUDE_PATH
33   JAVA_INCLUDE_PATH
34   JAVA_INCLUDE_PATH2