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.
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers