FindDevIL.cmake 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # This module locates the developer's image library.
  2. # http://openil.sourceforge.net/
  3. #
  4. # This module sets:
  5. # IL_LIBRARY the name of the IL library.
  6. # ILU_LIBRARY the name of the ILU library.
  7. # ILUT_LIBRARY the name of the ILUT library.
  8. # IL_INCLUDE_DIR where to find the il.h, ilu.h and ilut.h files.
  9. # IL_FOUND this is set to TRUE if all the above variables were set.
  10. # Original file by: Christopher Harvey
  11. # TODO: Add version support.
  12. # Tested under Linux and Windows (MSVC)
  13. INCLUDE(FindPackageHandleStandardArgs)
  14. FIND_PATH(IL_INCLUDE_DIR il.h
  15. PATH_SUFFIXES include IL
  16. DOC "The path the the directory that contains il.h"
  17. )
  18. #MESSAGE("IL_INCLUDE_DIR is ${IL_INCLUDE_DIR}")
  19. FIND_LIBRARY(IL_LIBRARY
  20. NAMES IL
  21. PATH_SUFFIXES lib64 lib lib32
  22. DOC "The file that corresponds to the base il library."
  23. )
  24. #MESSAGE("IL_LIBRARY is ${IL_LIBRARY}")
  25. FIND_LIBRARY(ILUT_LIBRARY
  26. NAMES ILUT
  27. PATH_SUFFIXES lib64 lib lib32
  28. DOC "The file that corresponds to the il (system?) utility library."
  29. )
  30. #MESSAGE("ILUT_LIBRARY is ${ILUT_LIBRARY}")
  31. FIND_LIBRARY(ILU_LIBRARY
  32. NAMES ILU
  33. PATH_SUFFIXES lib64 lib lib32
  34. DOC "The file that corresponds to the il utility library."
  35. )
  36. #MESSAGE("ILU_LIBRARY is ${ILU_LIBRARY}")
  37. FIND_PACKAGE_HANDLE_STANDARD_ARGS(IL DEFAULT_MSG
  38. IL_LIBRARY ILU_LIBRARY
  39. ILUT_LIBRARY IL_INCLUDE_DIR)