summary refs log tree commit diff stats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindMxml.cmake31
1 files changed, 31 insertions, 0 deletions
diff --git a/cmake/FindMxml.cmake b/cmake/FindMxml.cmake new file mode 100644 index 0000000..49daa4f --- /dev/null +++ b/cmake/FindMxml.cmake
@@ -0,0 +1,31 @@
1# - Try to find Motif (or lesstif)
2# Once done this will define:
3# MXML_FOUND - system has MXML
4# MXML_INCLUDE_DIR - incude paths to use Motif
5# MXML_LIBRARIES - Link these to use Motif
6
7SET(MXML_FOUND 0)
8
9IF(UNIX)
10 FIND_PATH(MXML_INCLUDE_DIR
11 mxml.h
12 /usr/include
13 )
14
15 FIND_LIBRARY(MXML_LIBRARIES
16 mxml
17 /usr/lib
18 )
19
20ENDIF(UNIX)
21
22# handle the QUIETLY and REQUIRED arguments and set MXML_FOUND to TRUE if
23# all listed variables are TRUE
24INCLUDE(FindPackageHandleStandardArgs)
25FIND_PACKAGE_HANDLE_STANDARD_ARGS(MXML DEFAULT_MSG MXML_LIBRARIES MXML_INCLUDE_DIR)
26
27
28MARK_AS_ADVANCED(
29 MXML_INCLUDE_DIR
30 MXML_LIBRARIES
31) \ No newline at end of file