FindMotif.cmake 789 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #.rst:
  4. # FindMotif
  5. # ---------
  6. #
  7. # Try to find Motif (or lesstif)
  8. #
  9. # Once done this will define:
  10. #
  11. # ::
  12. #
  13. # MOTIF_FOUND - system has MOTIF
  14. # MOTIF_INCLUDE_DIR - include paths to use Motif
  15. # MOTIF_LIBRARIES - Link these to use Motif
  16. set(MOTIF_FOUND 0)
  17. if(UNIX)
  18. find_path(MOTIF_INCLUDE_DIR
  19. Xm/Xm.h
  20. /usr/openwin/include
  21. )
  22. find_library(MOTIF_LIBRARIES
  23. Xm
  24. /usr/openwin/lib
  25. )
  26. endif()
  27. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  28. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif DEFAULT_MSG MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
  29. mark_as_advanced(
  30. MOTIF_INCLUDE_DIR
  31. MOTIF_LIBRARIES
  32. )