[CMake] Using modules, adjusting CMAKE_MODULE_PATH

Thomas Lehmann t.lehmann at rtsgroup.net
Tue Nov 2 05:42:37 EDT 2010


Hi all,

what I read is that I have to adjust CMAKE_MODULE_PATH so
that include or find_packages can work.

My problem is that I don't want to use environment variables
to tell where the root of all sources is:

set(CMAKE_MODULE_PATH ${ CMAKE_MODULE_PATH } ${SRCROOT})

But I really don't like the idea.

Now assume /src, /src/libs, /src/apps are some paths of the source tree.
In /obj I could do one of the following:

-          cmake /src                                                        rebuild all.

-          cmake /src/libs                                                               rebuild all libs.

-          cmake /src/apps                                            rebuild all apps.

-          cmake /src/apps/concreteapp1                              rebuild one app only.

For each scenario I want to ensure that I can find/include a module.
Is this possible?

Kind Regards
Thomas


Thomas Lehmann
Scrum Master

[cid:rts-logo.png at 302c55e3a904430bbf60a70f8dc2ba7f]

RTS Realtime Systems Software GmbH, Rembrandtstrasse 13, D-60596 Frankfurt am Main
T: +49.69.61009.0 / F: +49.69.61009.181

Sitz: Frankfurt am Main - HRB 84467 Amtsgericht Frankfurt am Main
Gesch?ftsf?hrer: Steffen Gemuenden, Igor Sluga

www.rtsgroup.net

This email and any attachments are for the exclusive and confidential use of the intended recipient. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify me immediately by return email and promptly delete this message and its attachments from your computer system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101102/1206c705/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rts-logo.png
Type: image/png
Size: 13233 bytes
Desc: rts-logo.png
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101102/1206c705/attachment-0001.png>


More information about the CMake mailing list