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. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake