Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / FindMotif.cmake
blobe068202e4104be899702929ddad45638a5b94b77
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
7 SET(MOTIF_FOUND 0)
9 IF(UNIX)
10   FIND_PATH(MOTIF_INCLUDE_DIR
11     Xm/Xm.h
12     /usr/openwin/include
13     )
15   FIND_LIBRARY(MOTIF_LIBRARIES
16     Xm
17     /usr/openwin/lib
18     )
20 ENDIF(UNIX)
22 # handle the QUIETLY and REQUIRED arguments and set MOTIF_FOUND to TRUE if 
23 # all listed variables are TRUE
24 INCLUDE(FindPackageHandleStandardArgs)
25 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif DEFAULT_MSG MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
28 MARK_AS_ADVANCED(
29   MOTIF_INCLUDE_DIR
30   MOTIF_LIBRARIES