FindMotif.cmake 689 B

12345678910111213141516171819202122232425262728293031323334
  1. # Try to find Motif (or lesstif)
  2. # Once done this will define
  3. #
  4. # MOTIF_FOUND - system has MOTIF
  5. # MOTIF_INCLUDE_DIR - where the Motif include directory can be found
  6. # MOTIF_LIBRARIES - Link these to use Motif
  7. SET(MOTIF_FOUND 0)
  8. IF(UNIX)
  9. FIND_PATH(MOTIF_INCLUDE_DIR
  10. Xm/Xm.h
  11. /usr/X11R6/include
  12. /usr/local/include
  13. /usr/openwin/include
  14. /usr/include
  15. )
  16. FIND_LIBRARY(MOTIF_LIBRARIES
  17. Xm
  18. /usr/X11R6/lib
  19. /usr/local/lib
  20. /usr/openwin/lib
  21. /usr/lib
  22. )
  23. IF(MOTIF_LIBRARIES AND MOTIF_INCLUDE_DIR)
  24. SET(MOTIF_FOUND 1)
  25. ENDIF(MOTIF_LIBRARIES AND MOTIF_INCLUDE_DIR)
  26. ENDIF(UNIX)
  27. MARK_AS_ADVANCED(
  28. MOTIF_INCLUDE_DIR
  29. MOTIF_LIBRARIES
  30. )