From 44324ba5d6cac01048cc5cbecbff255ee56f2fc0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 14 Mar 2015 16:13:11 -0400 Subject: Wrote simple factory to read map and entity data from XML files --- cmake/FindMxml.cmake | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 cmake/FindMxml.cmake (limited to 'cmake') 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 @@ +# - 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 +) \ No newline at end of file -- cgit 1.4.1