cmake/Modules/FindMotif.cmake

40 lines
789 B
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
2014-08-03 19:52:23 +02:00
#.rst:
# FindMotif
# ---------
#
# Try to find Motif (or lesstif)
#
# Once done this will define:
2014-08-03 19:52:23 +02:00
#
# ::
#
# MOTIF_FOUND - system has MOTIF
# MOTIF_INCLUDE_DIR - include paths to use Motif
# MOTIF_LIBRARIES - Link these to use Motif
2013-03-16 19:13:01 +02:00
set(MOTIF_FOUND 0)
2013-03-16 19:13:01 +02:00
if(UNIX)
find_path(MOTIF_INCLUDE_DIR
Xm/Xm.h
/usr/openwin/include
)
2013-03-16 19:13:01 +02:00
find_library(MOTIF_LIBRARIES
Xm
/usr/openwin/lib
)
2013-03-16 19:13:01 +02:00
endif()
2013-03-16 19:13:01 +02:00
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif DEFAULT_MSG MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
2013-03-16 19:13:01 +02:00
mark_as_advanced(
MOTIF_INCLUDE_DIR
MOTIF_LIBRARIES
)