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 46 47 48 49 50 51 52 53 54 55
|
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(Qt@QT_MAJOR_VERSION@Core @REQUIRED_QT_VERSION@)
if(NOT @BUILD_SHARED_LIBS@)
if(NOT WIN32)
find_dependency(Threads)
endif()
# Should be if(Inotify_FOUND) here, but for some reason this doesn't work when building statically
# due to ECM's FindInotify.cmake misbehavior — see https://bugs.kde.org/show_bug.cgi?id=460656 for details.
# This workaround stops CMake from failing on Linux by relying on the fact that Inotify is built into
# kernel there, so no additional linking is required, resulting in an empty Inotify_LIBRARIES var.
# The issue (most likely) persists on BSD, though, where Inotify is, in fact, provided by a library.
if(@Inotify_LIBRARIES@)
find_dependency(Inotify)
endif()
if(@Procstat_FOUND@)
find_dependency(Procstat)
endif()
if(@HAVE_QTDBUS@)
find_dependency(Qt@QT_MAJOR_VERSION@DBus @REQUIRED_QT_VERSION@)
endif()
if (@UDev_FOUND@)
find_dependency(UDev)
endif()
endif()
@PACKAGE_SETUP_AUTOMOC_VARIABLES@
if(CMAKE_CROSSCOMPILING AND KF5_HOST_TOOLING)
find_file(KCOREADDONS_TARGETSFILE KF5CoreAddons/KF5CoreAddonsToolingTargets.cmake
PATHS ${KF5_HOST_TOOLING} ${CMAKE_CURRENT_LIST_DIR}
NO_DEFAULT_PATH
NO_CMAKE_FIND_ROOT_PATH)
include("${KCOREADDONS_TARGETSFILE}")
# Check that the host tool version is the same to avoid incompatibilities.
get_target_property(HOST_TOOL_VERSION KF5::desktoptojson TOOL_VERSION)
if (NOT ("${HOST_TOOL_VERSION}" VERSION_EQUAL "@KF_VERSION@"))
message(WARNING "Found incompatible host tool version ${HOST_TOOL_VERSION}, expected @KF_VERSION@")
endif()
else()
include("${CMAKE_CURRENT_LIST_DIR}/KF5CoreAddonsToolingTargets.cmake")
if(CMAKE_CROSSCOMPILING AND DESKTOPTOJSON_EXECUTABLE)
set_target_properties(KF5::desktoptojson PROPERTIES IMPORTED_LOCATION_NONE ${DESKTOPTOJSON_EXECUTABLE})
set_target_properties(KF5::desktoptojson PROPERTIES IMPORTED_LOCATION ${DESKTOPTOJSON_EXECUTABLE})
endif()
endif()
include("${CMAKE_CURRENT_LIST_DIR}/KF5CoreAddonsTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/KF5CoreAddonsMacros.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@
|