[CMake] Using Qt5 with CMake
Stephen Kelly
steveire at gmail.com
Wed Mar 12 14:06:08 EDT 2014
Alan W. Irwin wrote:
>> Packages and targets know their dependencies so you don't have to.
>
> Your statement appears to imply that QtSvg has a QtGui (and QtCore)
> dependency so I don't have to worry about those other components.
Correct. I suggest you create a project for experimentation such as this:
find_package(Qt4 REQUIRED)
find_package(Qt5Svg REQUIRED)
add_executable(testexe main.cpp)
target_link_libraries(testexe Qt4::QtSvg)
#target_link_libraries(testexe Qt5::Svg)
and look at the verbose output.
Thanks,
Steve.
More information about the CMake
mailing list