File: FindPlymouth.cmake

package info (click to toggle)
breeze-plymouth 6.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 732 kB
  • sloc: ansic: 626; sh: 85; ruby: 16; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-FileCopyrightText: 2016 Harald Sitter <sitter@kde.org>
#
# SPDX-License-Identifier: BSD-2-Clause

include(FindPkgConfig)

pkg_check_modules(Plymouth ply-boot-client ply-splash-core)
exec_program(${PKG_CONFIG_EXECUTABLE}
    ARGS ply-splash-core --variable=pluginsdir
    OUTPUT_VARIABLE Plymouth_PLUGINSDIR)
exec_program(${PKG_CONFIG_EXECUTABLE}
    ARGS ply-splash-core --variable=themesdir
    OUTPUT_VARIABLE Plymouth_THEMESDIR)

find_package_handle_standard_args(Plymouth
    FOUND_VAR
        Plymouth_FOUND
    REQUIRED_VARS
        Plymouth_LIBRARIES
    VERSION_VAR
        Plymouth_VERSION
    HANDLE_COMPONENTS
)

include(FeatureSummary)
set_package_properties(Plymouth PROPERTIES
    URL "https://www.freedesktop.org/wiki/Software/Plymouth/"
    DESCRIPTION "Plymouth development files."
)