2
# Find the Xext libraries
4
# This module defines the following variables:
5
# Xext_FOUND - true if Xext_INCLUDE_DIR & Xext_LIBRARY are found
6
# Xext_LIBRARIES - Set when Xext_LIBRARY is found
7
# Xext_INCLUDE_DIRS - Set when Xext_INCLUDE_DIR is found
9
# Xext_INCLUDE_DIR - where to find Xext.h, etc.
10
# Xext_LIBRARY - the Xext library
13
#=============================================================================
14
# Copyright 2011 O.S. Systems Software Ltda.
15
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
16
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
18
# Licensed under the Apache License, Version 2.0 (the "License");
19
# you may not use this file except in compliance with the License.
20
# You may obtain a copy of the License at
22
# http://www.apache.org/licenses/LICENSE-2.0
24
# Unless required by applicable law or agreed to in writing, software
25
# distributed under the License is distributed on an "AS IS" BASIS,
26
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
# See the License for the specific language governing permissions and
28
# limitations under the License.
29
#=============================================================================
31
find_path(XEXT_INCLUDE_DIR NAMES Xext.h
32
PATH_SUFFIXES X11/extensions
33
DOC "The Xext include directory"
36
find_library(XEXT_LIBRARY NAMES Xext
37
DOC "The Xext library"
40
include(FindPackageHandleStandardArgs)
41
FIND_PACKAGE_HANDLE_STANDARD_ARGS(XEXT DEFAULT_MSG XEXT_LIBRARY XEXT_INCLUDE_DIR)
44
set( XEXT_LIBRARIES ${XEXT_LIBRARY} )
45
set( XEXT_INCLUDE_DIRS ${XEXT_INCLUDE_DIR} )
48
mark_as_advanced(XEXT_INCLUDE_DIR XEXT_LIBRARY)