[cmake-developers] Setting the link interface and dependencies in one command

Stephen Kelly steveire at gmail.com
Thu Oct 6 20:59:00 EDT 2011


Stephen Kelly wrote:

> target_link_libraries(foo
> LINK_PUBLIC
> qtcore
> qtnetwork
> )
> 
> is equivalent to
> 
> target_link_libraries(foo
> qtcore
> qtnetwork
> )
> 
> * foo will link against qtcore and qtnetwork

I should have also noted that both qtcore and qtnetwork will also be in the 
LINK_INTERFACE_LIBRARIES.




More information about the cmake-developers mailing list