FindMotif.cmake 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # - Try to find Motif (or lesstif)
  2. # Once done this will define:
  3. # MOTIF_FOUND - system has MOTIF
  4. # MOTIF_INCLUDE_DIR - include paths to use Motif
  5. # MOTIF_LIBRARIES - Link these to use Motif
  6. #=============================================================================
  7. # Copyright 2005-2009 Kitware, Inc.
  8. #
  9. # Distributed under the OSI-approved BSD License (the "License");
  10. # see accompanying file Copyright.txt for details.
  11. #
  12. # This software is distributed WITHOUT ANY WARRANTY; without even the
  13. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. # See the License for more information.
  15. #=============================================================================
  16. # (To distributed this file outside of CMake, substitute the full
  17. # License text for the above reference.)
  18. SET(MOTIF_FOUND 0)
  19. IF(UNIX)
  20. FIND_PATH(MOTIF_INCLUDE_DIR
  21. Xm/Xm.h
  22. /usr/openwin/include
  23. )
  24. FIND_LIBRARY(MOTIF_LIBRARIES
  25. Xm
  26. /usr/openwin/lib
  27. )
  28. ENDIF(UNIX)
  29. # handle the QUIETLY and REQUIRED arguments and set MOTIF_FOUND to TRUE if
  30. # all listed variables are TRUE
  31. INCLUDE(FindPackageHandleStandardArgs)
  32. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif DEFAULT_MSG MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
  33. MARK_AS_ADVANCED(
  34. MOTIF_INCLUDE_DIR
  35. MOTIF_LIBRARIES
  36. )