I've noticed that okular has a fair number of findExecutable calls. It'd be really awesome if these runtime dependencies would get checked for in the cmakelists (like already done for kirigami). This makes the requirements reasonably codified, points users to potential problems with their custom builds, and helps distros ensure all runtime deps are properly pulled in by their packaging. In neon, for example, we have special tech parsing the cmake feature_summary output to check runtime dependencies are actually met.
I'm really not a fan of runtime checks on compile time, but if someone has a nice patch i guess we could add it.