summary refs log tree commit diff stats
path: root/cmake/FindMxml.cmake
blob: 49daa4f03c0988c66756aecf5b947b1b807a60fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# - Try to find Motif (or lesstif)
# Once done this will define:
#  MXML_FOUND        - system has MXML
#  MXML_INCLUDE_DIR  - incude paths to use Motif
#  MXML_LIBRARIES    - Link these to use Motif

SET(MXML_FOUND 0)

IF(UNIX)
  FIND_PATH(MXML_INCLUDE_DIR
	  mxml.h
    /usr/include
    )

  FIND_LIBRARY(MXML_LIBRARIES
	  mxml
    /usr/lib
    )

ENDIF(UNIX)

# handle the QUIETLY and REQUIRED arguments and set MXML_FOUND to TRUE if 
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MXML DEFAULT_MSG MXML_LIBRARIES MXML_INCLUDE_DIR)


MARK_AS_ADVANCED(
  MXML_INCLUDE_DIR
  MXML_LIBRARIES
)