FindDevIL.cmake 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
  14. INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
  15. FIND_PATH(IL_INCLUDE_DIR il.h
  16. PATH_SUFFIXES include IL
  17. DOC "The path the the directory that contains il.h"
  18. )
  19. #MESSAGE("IL_INCLUDE_DIR is ${IL_INCLUDE_DIR}")
  20. FIND_LIBRARY(IL_LIBRARY
  21. NAMES IL
  22. PATH_SUFFIXES lib64 lib lib32
  23. DOC "The file that corresponds to the base il library."
  24. )
  25. #MESSAGE("IL_LIBRARY is ${IL_LIBRARY}")
  26. FIND_LIBRARY(ILUT_LIBRARY
  27. NAMES ILUT
  28. PATH_SUFFIXES lib64 lib lib32
  29. DOC "The file that corresponds to the il (system?) utility library."
  30. )
  31. #MESSAGE("ILUT_LIBRARY is ${ILUT_LIBRARY}")
  32. FIND_LIBRARY(ILU_LIBRARY
  33. NAMES ILU
  34. PATH_SUFFIXES lib64 lib lib32
  35. DOC "The file that corresponds to the il utility library."
  36. )
  37. #MESSAGE("ILU_LIBRARY is ${ILU_LIBRARY}")
  38. FIND_PACKAGE_HANDLE_STANDARD_ARGS(IL DEFAULT_MSG
  39. IL_LIBRARY ILU_LIBRARY
  40. ILUT_LIBRARY IL_INCLUDE_DIR)