mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
37bf29d57d
Avoids all the explicit boilerplate needed, ensures the dependency on the JSON file ia also set and allows simple export of the setup in the installed CMake config file, so other projects importing the config file have the respective CMake macros set as recommended. Test Plan: Still builds as before. Touch a plugin metadata JSON file now triggers a moc rerun. CMake config file contains setup of variables.
14 lines
451 B
CMake
14 lines
451 B
CMake
@PACKAGE_INIT@
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Qt5Core @QT_REQUIRED_VERSION@)
|
|
find_dependency(Qt5PrintSupport @QT_REQUIRED_VERSION@)
|
|
find_dependency(Qt5Widgets @QT_REQUIRED_VERSION@)
|
|
find_dependency(KF5CoreAddons @KF5_REQUIRED_VERSION@)
|
|
find_dependency(KF5Config @KF5_REQUIRED_VERSION@)
|
|
find_dependency(KF5XmlGui @KF5_REQUIRED_VERSION@)
|
|
|
|
@PACKAGE_SETUP_AUTOMOC_VARIABLES@
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/Okular5Targets.cmake")
|