Backported #6865: Disable websockets command line option
[platform/upstream/freerdp.git] / cmake / FindPixman.cmake
1 # - Find Pixman
2 # Find the Pixman libraries
3 #
4 #  This module defines the following variables:
5 #     PIXMAN_FOUND        - true if PIXMAN_INCLUDE_DIR & PIXMAN_LIBRARY are found
6 #     PIXMAN_LIBRARIES    - Set when PIXMAN_LIBRARY is found
7 #     PIXMAN_INCLUDE_DIRS - Set when PIXMAN_INCLUDE_DIR is found
8 #
9 #     PIXMAN_INCLUDE_DIR  - where to find pixman.h, etc.
10 #     PIXMAN_LIBRARY      - the Pixman library
11 #
12
13 #=============================================================================
14 # Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
15 #
16 # Licensed under the Apache License, Version 2.0 (the "License");
17 # you may not use this file except in compliance with the License.
18 # You may obtain a copy of the License at
19 #
20 #     http://www.apache.org/licenses/LICENSE-2.0
21 #
22 # Unless required by applicable law or agreed to in writing, software
23 # distributed under the License is distributed on an "AS IS" BASIS,
24 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 # See the License for the specific language governing permissions and
26 # limitations under the License.
27 #=============================================================================
28
29 find_path(PIXMAN_INCLUDE_DIR NAMES pixman.h PATH_SUFFIXES pixman-1)
30
31 find_library(PIXMAN_LIBRARY NAMES pixman-1)
32
33 find_package_handle_standard_args(pixman-1 DEFAULT_MSG PIXMAN_LIBRARY PIXMAN_INCLUDE_DIR)
34
35 if(PIXMAN-1_FOUND)
36         set(PIXMAN_LIBRARIES ${PIXMAN_LIBRARY})
37         set(PIXMAN_INCLUDE_DIRS ${PIXMAN_INCLUDE_DIR})
38 endif()
39
40 mark_as_advanced(PIXMAN_INCLUDE_DIR PIXMAN_LIBRARY)