FindMotif.cmake 681 B

12345678910111213141516171819202122232425262728293031
  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/openwin/include
  11. )
  12. FIND_LIBRARY(MOTIF_LIBRARIES
  13. Xm
  14. /usr/openwin/lib
  15. )
  16. ENDIF(UNIX)
  17. # handle the QUIETLY and REQUIRED arguments and set MOTIF_FOUND to TRUE if
  18. # all listed variables are TRUE
  19. INCLUDE(FindPackageHandleStandardArgs)
  20. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif DEFAULT_MSG MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
  21. MARK_AS_ADVANCED(
  22. MOTIF_INCLUDE_DIR
  23. MOTIF_LIBRARIES
  24. )