On Thursday 29 June 2006 19:38, Albert Astals Cid wrote: ... > But the pdf kfile-plugin does not, it would not make sense disabling its > compilation when you have poppler 0.5 for example. Can this be done with > the cmake framework? And if it can, how?
Yes. The cmake file can use e.g. CHECK_SYMBOL_EXISTS() or something like this to check whether some function exists in a given header. The result can the be used from the outside. find_package(PopplerQt4) if (POPPLERQT4_HAVE_FANCY_NEW_FEATURE) ... endif (POPPLERQT4_HAVE_FANCY_NEW_FEATURE) Bye Alex -- Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de Home: neundorf AT kde.org - http://www.kde.org alex AT neundorf.net - http://www.neundorf.net _______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
