Skip to content
  • Stephen Kelly's avatar
    Qt4: Add module dependencies to the IMPORTED targets · 57a67bf2
    Stephen Kelly authored and Brad King's avatar Brad King committed
    This means for example, that consumers can use:
    
     target_link_libraries(foo ${QT_QTGUI_LIBRARIES})
    
    instead of also needing to specify all 'public' dependencies:
    
     target_link_libraries(foo ${QT_QTGUI_LIBRARIES} ${QT_QTCORE_LIBRARIES} )
    
    when using the IMPORTED targets.  Also populate the
    IMPORTED_LINK_DEPENDENT_LIBRARIES property so CMake can help the linker
    find shared library dependencies.
    57a67bf2