[CMake] Qt4/Windows problems

Bill Hoffman bill.hoffman at kitware.com
Wed Jan 17 13:32:23 EST 2007


oleg dashevskii wrote:
> add_executable(DockWidgets ${SRCS} ${MOCSRCS} ${RESSRCS})
>
> TARGET_LINK_LIBRARIES(
>         ${QT_LIBRARIES}
> )
You want:
TARGET_LINK_LIBRARIES DocWidgets ${QT_LIBRARIES})
It is treating the first qt library as the name of the target you want 
to link
to qt.

-Bill



More information about the CMake mailing list