Hello,

I am currently working on a project that exports a static library
target including its dependencies so that it can be used with the
`find_package()' command.

With include files this is quite easy by using the $<BUILD_INTERFACE>
and the $<INSTALL_INTERFACE> generator expressions in combination with
the `installl()' command.

However, with dependent libraries which are not built by my project
things are a bit more complicated because
`target_include_directories()' and `target_link_libraries()' search
differently for their arguments.

Is there a way to add dependent libraries (they are all static) to my
package so that they are automatically found and linked to targets
which use my library target?

Thanks for your thoughts and your help,
  Rainer
-- 

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