[cmake-developers] qt4_use_modules
Stephen Kelly
steveire at gmail.com
Sun Aug 19 17:48:41 EDT 2012
Stephen Kelly wrote:
> Clinton Stimpson wrote:
>> I've been playing with for a bit and was wondering how to handle the
>> qtmain library with it?
>> Do I actually have to put a if(WIN32) around that, like this?
>> if(WIN32)
>> qt4_use_modules(myapp main)
>> endif()
>>
>> Previously, I could do
>> target_link_libraries(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY}
>> ${QT_LIBRARIES}) and on those platforms without qtmain, the variable is
>> simply empty.
>
> Short term, you should keep using
>
> target_link_libraries(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY})
>
I merged this to next, and made it a FATAL_ERROR to attempt to do
qt4_use_modules(myapp main). The qtmain library is not a full Qt module,
with API etc
http://doc.qt.nokia.com/4.7-snapshot/modules.html
so it shouldn't be used with that function, although I too can imagine
people trying.
Thanks,
Steve.
More information about the cmake-developers
mailing list