MinetestFindIrrlichtHeaders.cmake 626 B

123456789101112131415161718
  1. # Locate IrrlichtMt headers on system.
  2. find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
  3. DOC "Path to the directory with IrrlichtMt includes"
  4. PATHS
  5. /usr/local/include/irrlichtmt
  6. /usr/include/irrlichtmt
  7. /system/develop/headers/irrlichtmt #Haiku
  8. PATH_SUFFIXES "include/irrlichtmt"
  9. )
  10. # Handholding for users
  11. if(IRRLICHT_INCLUDE_DIR AND (NOT IS_DIRECTORY "${IRRLICHT_INCLUDE_DIR}" OR
  12. NOT EXISTS "${IRRLICHT_INCLUDE_DIR}/irrlicht.h"))
  13. message(WARNING "IRRLICHT_INCLUDE_DIR was set to ${IRRLICHT_INCLUDE_DIR} "
  14. "but irrlicht.h does not exist inside. The path will not be used.")
  15. unset(IRRLICHT_INCLUDE_DIR CACHE)
  16. endif()