File: KF6SolidConfig.cmake.in

package info (click to toggle)
kf6-solid 6.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,284 kB
  • sloc: cpp: 18,154; xml: 523; lex: 112; yacc: 87; sh: 14; makefile: 5
file content (45 lines) | stat: -rw-r--r-- 1,329 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# SolidConfig.cmake provides information about the installed Solid library.
# It can be used directly from CMake via find_package(Solid NO_MODULE)
#
# The following CMake variables are provided:
#   Solid_VERSION_MAJOR - the major version number of Solid
#   Solid_VERSION_MINOR - the minor version number of Solid
#   Solid_VERSION_PATCH - the patch version number of Solid
#   Solid_INCLUDE_DIRS  - the include directories to use
#   Solid_HAVE_UDev         - TRUE if device discovery via udev is supported
#
# Additionally, the following imported library targets are created, which may be used directly
# with target_link_libraries():
#   KF6::Solid - the Solid library

@PACKAGE_INIT@

set(SOLID_DBUS_INTERFACES_DIR "@PACKAGE_KDE_INSTALL_DBUSINTERFACEDIR@")

include(CMakeFindDependencyMacro)
find_dependency(Qt6Core @REQUIRED_QT_VERSION@)

if (NOT @BUILD_SHARED_LIBS@)
    find_dependency(Qt6Xml @REQUIRED_QT_VERSION@)
    find_dependency(Qt6Gui @REQUIRED_QT_VERSION@)

    if (@HAVE_DBUS@)
        find_dependency(Qt6DBus @REQUIRED_QT_VERSION@)
    endif()

    if (@HAVE_LIBMOUNT@)
        find_dependency(LibMount)
    endif()

    if (@UDev_FOUND@)
        find_dependency(UDev)
    endif()
endif()

include("${CMAKE_CURRENT_LIST_DIR}/KF6SolidTargets.cmake")

# "public" variables:


set(Solid_HAVE_UDev @UDev_FOUND@ )