[CMake] target_link_libraries from executable
FOLLIC Gilles
gilles.follic at sgcib.com
Thu Mar 10 13:04:44 EST 2016
Hello,
The idea is to get all the depedencies from an other project (executable).
set_property(TARGET [EXECUTABLE] PROPERTY ENABLE_EXPORTS true)
target_link_libraries(${PROJECT_NAME} [EXECUTABLE])
This works perfectly, as I get all the include, libs I need, but I get on my
visual studio a new lib from my [EXECUTABLE], called [EXECUTABLE].lib which
I don't need since it is a executable, not a librairy.
How can I do to remove this lib?
Thank you
Gilles
*************************************************************************
This message and any attachments (the "message") are confidential, intended solely for the addresse(s), and may contain legally privileged information.
Any unauthorized use or dissemination is prohibited. E-mails are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or
falsified.
Please visit http://swapdisclosure.sgcib.com for important information with respect to derivative products.
************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes
par le secret professionnel.
Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
Veuillez consulter le site http://swapdisclosure.sgcib.com afin de recueillir d'importantes informations sur les produits derives.
*************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160310/273bd23e/attachment.html>
More information about the CMake
mailing list