[CMake] QT Plugin with cmake

William A. Hoffman billlist at nycap.rr.com
Wed Jun 7 11:59:27 EDT 2006


At 11:54 AM 6/7/2006, Christian Koerner wrote:
>Hi,
>
>In qmake .pro files exists a switch for compiling QT Plugins (CONFIG +=
>plugin). Is there any way to replicate this using cmake? I tried
>manually setting -DQT_PLUGIN using ADD_DEFINITIONS which didn't help.

Well, I am sure there is, but you have to figure out what that config
changes.   My guess is it makes the library a module.

ADD_LIBRARY(foo MODULE ...)

Should be the same.  The best thing to do is look at a makefile produced
by qmake and see what the plugin config did.

-Bill



More information about the CMake mailing list