Commit Graph

4 Commits

Author SHA1 Message Date
Friedrich W. H. Kossebau
37bf29d57d Use ecm_setup_qtplugin_macro_names
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.
2020-09-13 11:20:50 +02:00
Friedrich W. H. Kossebau
2fa8080447 Ensure build dependency on JSON files using CMAKE_AUTOMOC_DEPEND_FILTERS
Also do needed setup for automoc in installed CMake config file.
2020-04-08 00:46:27 +02:00
Jonathan Riddell
7d656d53a0 add missing include for find_dependency https://build.neon.kde.org/job/xenial_unstable_applications_okular_lintcmake/59/console 2017-10-27 14:53:23 +01:00
Alex Richardson
ed352a06fb Install Okular5Config.cmake instead of OkularConfig.cmake
Otherwise Qt4 projects that have a find_package(Okular) can break
because CMake then selects moc from Qt5 which won't work

REVIEW: 124381
2015-07-20 14:17:38 +01:00