2013-10-15 11:17:36 -04:00
|
|
|
#.rst:
|
|
|
|
# FindMotif
|
|
|
|
# ---------
|
|
|
|
#
|
|
|
|
# Try to find Motif (or lesstif)
|
|
|
|
#
|
2005-12-14 13:51:08 -05:00
|
|
|
# Once done this will define:
|
2013-10-15 11:17:36 -04:00
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# MOTIF_FOUND - system has MOTIF
|
|
|
|
# MOTIF_INCLUDE_DIR - include paths to use Motif
|
|
|
|
# MOTIF_LIBRARIES - Link these to use Motif
|
2005-09-08 09:59:01 -04:00
|
|
|
|
2009-09-28 11:45:50 -04:00
|
|
|
#=============================================================================
|
|
|
|
# Copyright 2005-2009 Kitware, Inc.
|
|
|
|
#
|
|
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
# see accompanying file Copyright.txt for details.
|
|
|
|
#
|
|
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the License for more information.
|
|
|
|
#=============================================================================
|
2010-08-06 17:48:47 -07:00
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
2009-09-28 11:45:50 -04:00
|
|
|
# License text for the above reference.)
|
|
|
|
|
2012-08-13 13:47:32 -04:00
|
|
|
set(MOTIF_FOUND 0)
|
2007-07-19 09:00:51 -04:00
|
|
|
|
2012-08-13 13:47:32 -04:00
|
|
|
if(UNIX)
|
|
|
|
find_path(MOTIF_INCLUDE_DIR
|
2005-09-08 09:59:01 -04:00
|
|
|
Xm/Xm.h
|
|
|
|
/usr/openwin/include
|
|
|
|
)
|
|
|
|
|
2012-08-13 13:47:32 -04:00
|
|
|
find_library(MOTIF_LIBRARIES
|
2005-09-08 09:59:01 -04:00
|
|
|
Xm
|
|
|
|
/usr/openwin/lib
|
|
|
|
)
|
|
|
|
|
2012-08-13 13:50:14 -04:00
|
|
|
endif()
|
2005-09-08 09:59:01 -04:00
|
|
|
|
2012-08-13 13:42:58 -04:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and set MOTIF_FOUND to TRUE if
|
2007-07-19 09:00:51 -04:00
|
|
|
# all listed variables are TRUE
|
2012-08-13 13:47:32 -04:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
2007-07-23 09:49:52 -04:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif DEFAULT_MSG MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
|
2007-07-19 09:00:51 -04:00
|
|
|
|
|
|
|
|
2012-08-13 13:47:32 -04:00
|
|
|
mark_as_advanced(
|
2005-09-08 09:59:01 -04:00
|
|
|
MOTIF_INCLUDE_DIR
|
|
|
|
MOTIF_LIBRARIES
|
|
|
|
)
|