You just need to build Qt as static libraries with the configure -static option.
There's nothing else you need to change in your CMake setup, so you can keep your BUILD_SHARED_LIBS flag as you want and Qt is not affected by it. Clint On Tuesday, August 03, 2010 04:40:50 pm Glenn Hughes wrote: > Hey, > > I'd like to hard-link Qt in my application, while at the same time > allowing some of my other libraries to build as DLLs. Last time I > looked cmake just had a single 'either or' option for building either > as shared libraries or without. Is there some way to do a mixed build > like this, and more specifically, what exactly are the steps for > static linking to Qt? > > Thanks and best wishes > Glenn > _______________________________________________ > 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://www.cmake.org/mailman/listinfo/cmake _______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake