Hi, I'm thinking about a solution to use separate projects as source archives and include it into the main cmake build.
I looks like ExternalProject_Add() can handle this. However, there seems to be no standard way to use shared C/C++ libraries in an external project. Is there a basic example how to handle things like compiler and linker flags, dependencies etc. for let's say, an external project called foo and a library libbar.so? My understanding is that I need to define a shared library using "add_library(bar SHARED IMPORTED)" and use set_target_properties() to adjust the location. What else do I need to do? My guess is that I need to build a config.cmake in the external project and use find_package(), but I'm not sure about that. Regards, Tino -- 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