target_link_libraries on imported targets

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

target_link_libraries on imported targets

Jörg Kreuzberger
Hi!

i am using the cmake feature with target_link_libraries for static libraries to describe additional link dependencies from static libs e.g. to system libs and qt libraries.

The cmake files is use are used for "developper build" and customer build, but the customer does not get all source code to all libraries.

So i am using target definitions with "imported" targets.

But on this imported targets i cannot define these link dependencies with target_link_libraries. Which properties could i set on the IMPORTED Targets to get the same behaviour?

Mannheim HRB 504702
Geschäftsführer: Dipl.-Ing. (FH) Michael Brenk (Vorsitzender), Dipl.-Ing. (FH) Dipl.-Inf. (FH) Jens Heyen

This e-mail may contain confidential and/or legally protected information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden.
Thank you!


--

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://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: target_link_libraries on imported targets

Nils Gladitz-2
On 07/28/2014 10:33 AM, Jörg Kreuzberger wrote:

> But on this imported targets i cannot define these link dependencies with target_link_libraries. Which properties could i set on the IMPORTED Targets to get the same behaviour?

http://cmake.org/cmake/help/v3.0/prop_tgt/INTERFACE_LINK_LIBRARIES.html

Nils
--

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://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: target_link_libraries on imported targets

Jörg Kreuzberger
In reply to this post by Jörg Kreuzberger
Thanks, it worked like expected :-)

-----Ursprüngliche Nachricht-----
Von: Nils Gladitz <[hidden email]>
Gesendet: Mo 28.07.2014 11:03
Betreff: Re: [CMake] target_link_libraries on imported targets
An: Jörg Kreuzberger <[hidden email]>; [hidden email];

> On 07/28/2014 10:33 AM, Jörg Kreuzberger wrote:
>
> > But on this imported targets i cannot define these link dependencies with
> target_link_libraries. Which properties could i set on the IMPORTED Targets to
> get the same behaviour?
>
> http://cmake.org/cmake/help/v3.0/prop_tgt/INTERFACE_LINK_LIBRARIES.html
>
> Nils
>
>

Mannheim HRB 504702
Geschäftsführer: Dipl.-Ing. (FH) Michael Brenk (Vorsitzender), Dipl.-Ing. (FH) Dipl.-Inf. (FH) Jens Heyen

This e-mail may contain confidential and/or legally protected information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden.
Thank you!


--

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://public.kitware.com/mailman/listinfo/cmake