Hi list,

In my project I have to build things in two stages (different compilers
and different flags between the two stages). Both are built with CMake.

I'm looking for a way of how to correctly include the generated
products from one project (libraries in my case) in the other
project's build.

Right now I'm using export(TARGETS ... FILE something.cmake) in project
1 which gives me everything I need (a file I can include in the other
build). 

With the exception of not knowing targets I have to consider. Project 1
can freely define one or more targets with any name. I need to consider
all of them in the project 2.

How can I do it nicely?

Currently I'm thinking of adding manually a variable containing a list
of all targets to "something.cmake" once created with export.

Thanks,
--
Patrick.
-- 

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 via email to