File: FindGypsy.cmake

package info (click to toggle)
qt6-positioning 6.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,064 kB
  • sloc: cpp: 35,740; java: 513; xml: 58; makefile: 23
file content (17 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

find_package(PkgConfig QUIET)
if (PkgConfig_FOUND)
    pkg_check_modules(Gypsy gypsy IMPORTED_TARGET)

    if (TARGET PkgConfig::Gypsy)
        mark_as_advanced(Gypsy_LIBRARIES Gypsy_INCLUDE_DIRS)
        if (NOT TARGET Gypsy::Gypsy)
            add_library(Gypsy::Gypsy INTERFACE IMPORTED)
            target_link_libraries(Gypsy::Gypsy INTERFACE PkgConfig::Gypsy)
        endif()
    else()
        set(Gypsy_FOUND 0)
    endif()
endif()