~ubuntu-branches/ubuntu/precise/freerdp/precise-updates

1.1.6 by Martin Pitt
Import upstream version 1.0.0
1
# - Find XSHM
2
# Find the XSHM libraries
3
#
4
#  This module defines the following variables:
5
#     XSHM_FOUND        - true if XSHM_INCLUDE_DIR & XSHM_LIBRARY are found
6
#     XSHM_LIBRARIES    - Set when XSHM_LIBRARY is found
7
#     XSHM_INCLUDE_DIRS - Set when XSHM_INCLUDE_DIR is found
8
#
9
#     XSHM_INCLUDE_DIR  - where to find XShm.h, etc.
10
#     XSHM_LIBRARY      - the XSHM library
11
#
12
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>
17
#
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
21
#
22
#     http://www.apache.org/licenses/LICENSE-2.0
23
#
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
#=============================================================================
30
1.2.2 by Otavio Salvador
Import upstream version 1.0.1
31
find_path(XSHM_INCLUDE_DIR NAMES X11/extensions/XShm.h
1.1.6 by Martin Pitt
Import upstream version 1.0.0
32
          PATH_SUFFIXES X11/extensions
33
          DOC "The XShm include directory"
34
)
35
36
find_library(XSHM_LIBRARY NAMES Xext
37
          DOC "The XShm library"
38
)
39
40
include(FindPackageHandleStandardArgs)
1.2.2 by Otavio Salvador
Import upstream version 1.0.1
41
FIND_PACKAGE_HANDLE_STANDARD_ARGS(XShm DEFAULT_MSG XSHM_LIBRARY XSHM_INCLUDE_DIR)
1.1.6 by Martin Pitt
Import upstream version 1.0.0
42
43
if(XSHM_FOUND)
44
  set( XSHM_LIBRARIES ${XSHM_LIBRARY} )
45
  set( XSHM_INCLUDE_DIRS ${XSHM_INCLUDE_DIR} )
46
endif()
47
48
mark_as_advanced(XSHM_INCLUDE_DIR XSHM_LIBRARY)
49