2022-07-05 11:26:52 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-19 13:21:34 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 11:26:52 +00:00
|
|
|
|
2020-06-26 18:41:29 +00:00
|
|
|
find_package(PkgConfig QUIET)
|
2019-05-03 13:02:32 +00:00
|
|
|
|
2019-06-04 07:19:17 +00:00
|
|
|
if(NOT TARGET PkgConfig::XRender)
|
2019-05-03 13:02:32 +00:00
|
|
|
pkg_check_modules(XRender xrender IMPORTED_TARGET)
|
2019-06-04 07:19:17 +00:00
|
|
|
|
|
|
|
if (NOT TARGET PkgConfig::XRender)
|
|
|
|
set(XRender_FOUND 0)
|
|
|
|
endif()
|
2019-09-27 11:50:29 +00:00
|
|
|
else()
|
|
|
|
set(XRender_FOUND 1)
|
2019-05-03 13:02:32 +00:00
|
|
|
endif()
|