On 08/08/2012 19:00, Tero Mäntyvaara wrote:
Hi.

I have got four CMake-projects: project1, project2, project3 and
project4. Each project is in its own directory and these directories are
parallel.

Project2 is dependent on project1, project3 is dependent on project1 and
project2. Project4 is dependent on project1 and project3.

How can I include source files from other projects in projects2,
project3 and project4?

Assuming all projects are sub-projects of a single master project, you can make any target in any of those projects depend on any target in any of the other projects.


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to