[Cmake] module dependencies

Dekeyser, Kris Kris.Dekeyser at lms.be
Thu Aug 19 05:37:37 EDT 2004


Hi,

While CMake's TARGET_LINK_LIBRARIES command nicely resolves
sub-dependencies, it does not add the module's library target directory
(LINK_DIRECTORIES) nor the module's exported header file directories
(INCLUDE_DIRECTORIES) to the current project.

Is there an easy way to do have CMake add the proper include directories for
the module dependencies?

BTW things may get pretty complicated: if A depends on B and B depends on C
then the library directory of C should be included for A as well and if B's
public headers include C's headers, the include dir of C should be added to
A's project. Currently, the library dependencies are handled nicely, but I
have to add and maintain each and all of the sub-dependencies in all the
CMakeLists.txt files.

- Kris
+-+-+- Email Confidentiality Footer +-+-+- 
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery
of the message to such person), you may not print, retain, copy nor
disseminate this message or any part of it to anyone and you should notify
the sender by reply email and destroy this message. Neglecting this clause
could be a breach of confidence. Please advise immediately if you or your
employer does not consent to Internet email for messages of this kind.
Opinions, conclusions and other information in this message that are not
related to the official business of my firm shall be understood as neither
given nor endorsed by it.


More information about the Cmake mailing list