Blame cmake/FindXext.cmake

Packit Service fa4841
# - Find Xext
Packit Service fa4841
# Find the Xext libraries
Packit Service fa4841
#
Packit Service fa4841
#  This module defines the following variables:
Packit Service fa4841
#     Xext_FOUND        - true if Xext_INCLUDE_DIR & Xext_LIBRARY are found
Packit Service fa4841
#     Xext_LIBRARIES    - Set when Xext_LIBRARY is found
Packit Service fa4841
#     Xext_INCLUDE_DIRS - Set when Xext_INCLUDE_DIR is found
Packit Service fa4841
#
Packit Service fa4841
#     Xext_INCLUDE_DIR  - where to find Xext.h, etc.
Packit Service fa4841
#     Xext_LIBRARY      - the Xext library
Packit Service fa4841
#
Packit Service fa4841
Packit Service fa4841
#=============================================================================
Packit Service fa4841
# Copyright 2011 O.S. Systems Software Ltda.
Packit Service fa4841
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
Packit Service fa4841
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit Service fa4841
#
Packit Service fa4841
# Licensed under the Apache License, Version 2.0 (the "License");
Packit Service fa4841
# you may not use this file except in compliance with the License.
Packit Service fa4841
# You may obtain a copy of the License at
Packit Service fa4841
#
Packit Service fa4841
#     http://www.apache.org/licenses/LICENSE-2.0
Packit Service fa4841
#
Packit Service fa4841
# Unless required by applicable law or agreed to in writing, software
Packit Service fa4841
# distributed under the License is distributed on an "AS IS" BASIS,
Packit Service fa4841
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service fa4841
# See the License for the specific language governing permissions and
Packit Service fa4841
# limitations under the License.
Packit Service fa4841
#=============================================================================
Packit Service fa4841
Packit Service fa4841
find_path(XEXT_INCLUDE_DIR NAMES X11/extensions/Xext.h
Packit Service fa4841
          PATH_SUFFIXES X11/extensions
Packit Service fa4841
          PATHS /opt/X11/include
Packit Service fa4841
          DOC "The Xext include directory"
Packit Service fa4841
)
Packit Service fa4841
Packit Service fa4841
find_library(XEXT_LIBRARY NAMES Xext
Packit Service fa4841
          PATHS /opt/X11/lib
Packit Service fa4841
          DOC "The Xext library"
Packit Service fa4841
)
Packit Service fa4841
Packit Service fa4841
include(FindPackageHandleStandardArgs)
Packit Service fa4841
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Xext DEFAULT_MSG XEXT_LIBRARY XEXT_INCLUDE_DIR)
Packit Service fa4841
Packit Service fa4841
if(XEXT_FOUND)
Packit Service fa4841
  set( XEXT_LIBRARIES ${XEXT_LIBRARY} )
Packit Service fa4841
  set( XEXT_INCLUDE_DIRS ${XEXT_INCLUDE_DIR} )
Packit Service fa4841
endif()
Packit Service fa4841
Packit Service fa4841
mark_as_advanced(XEXT_INCLUDE_DIR XEXT_LIBRARY)
Packit Service fa4841