FindMotif.cmake 672 B

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