On Thu, Dec 31, 2009 at 4:06 PM, Hicham Mouline <hic...@mouline.org> wrote:
>> Assuming lib1 uses QtCore and QtNetwork: >> >> find_package( Qt4 COMPONENTS QtCore QtNetwork REQUIRED ) >> include_directories( ${QT_QTCORE_INCLUDE_DIR} ${QT_QTNETWORK_INCLUDE_DIR} > ) >> add_library( lib1 SHARED lib1_source1.cpp lib1_source2.cpp ... ) >> target_link_libraries( lib1 ${QT_QTCORE_LIBRARIES} > ${QT_QTNETWORK_LIBRARIES} ) > > Does this take care of both release and debug libraries? > Ie, in release build, it will include release libs and in debug debug libs? Yes, it does. Take a look at FindQt4.cmake for the details. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) _______________________________________________ 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