ENH: clean the module, add debug libs
[cmake.git] / Modules / FindJNI.cmake
blob3beb790aac628a61bb063fa5cd4aec6eb1d8a9e3
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
13         /usr/local/lib
14         /usr/lib/java/jre/lib/i386
15         /usr/local/lib/java/jre/lib/i386
16         "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/lib"
19 # add in the include path    
20 FIND_PATH(JAVA_INCLUDE_PATH jni.h 
21   /usr/include 
22   /usr/local/include
23   /usr/lib/java/include
24   /usr/local/lib/java/include
25   "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
28 FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h 
29   ${JAVA_INCLUDE_PATH}/win32
30   ${JAVA_INCLUDE_PATH}/linux
33 FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h ${JAVA_INCLUDE_PATH} )
35 MARK_AS_ADVANCED(
36   JAVA_AWT_LIBRARY
37   JAVA_AWT_INCLUDE_PATH
38   JAVA_INCLUDE_PATH
39   JAVA_INCLUDE_PATH2