[CMake] FindQt4 QT_LIBRARIES
hicham at mouline.org
Thu Jul 29 15:35:33 EDT 2010
>On 29. Jul, 2010, at 10:47 , Hicham Mouline wrote:
>> Hello,I have looked at FindQt4.cmake module for 2.8.2, but I can't find the code that sets the QT_LIBRARIES variable.Could someone point that out?Regards
>It's in UseQt4.cmake.
I am now trying to link against QT debug libariries in the RelWithDebInfo cmake configuation case.
However, it links against the QT release libs when I follow those lines of help of FindQt4.cmake that describe the typical usage.
This is the cmake code:
FIND_PACKAGE(Qt4 4.5.3 COMPONENTS QtCore QtGui QtOpenGL REQUIRED)
1. when CMAKE_BUILD_TYPE is Release, vs2008 shows the release libs of qt
2. when CMAKE_BUILD_TYPE is Debug, vs2008 shows the debug libs of qt
3. However when CMAKE_BUILD_TYPE is RelWithDebInfo it picks the release qt libs where I'd want to pick the debug qt libs. Outputting QT_LIBRARIES shows:
More information about the CMake