FindJNI.cmake 741 B

123456789101112131415161718192021
  1. #
  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:
  5. #
  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. #
  10. FIND_LIBRARY(JAVA_AWT_LIBRARY jawt PATHS /usr/lib /usr/local/lib)
  11. # add in the include path
  12. FIND_PATH(JAVA_INCLUDE_PATH jni.h /usr/include /usr/local/include)
  13. FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h
  14. ${JAVA_INCLUDE_PATH}/win32
  15. ${JAVA_INCLUDE_PATH}/linux
  16. )
  17. FIND_PATH(JAVE_AWT_INCLUDE_PATH jawt.h /usr/include /usr/local/include)