http://www.cmake.org/cmake/help/v3.0/command/add_custom_target.html
looks like all existing projects just do it by hand... it's safer if the build script doesn't have it. (much like not making copying runtime libraries easy) On Mon, Dec 15, 2014 at 12:49 AM, Petr Bena <benap...@gmail.com> wrote: > > Ok, one more question > > How do I enforce run of ldconfig during `sudo make install` on linux? > The library doesn't load without it. > > On Mon, Dec 15, 2014 at 9:37 AM, J Decker <d3c...@gmail.com> wrote: > > target_link_libraries( B A_product_name) > > target_link_libraries( C A_product_name) > > > > > > On Mon, Dec 15, 2014 at 12:34 AM, Petr Bena <benap...@gmail.com> wrote: > >> > >> I have a project: > >> > >> /Target A > >> - CMakeLists.txt > >> - /Target B > >> -- CMakeLists.txt > >> - /Target C > >> -- CMakeLists.txt > >> > >> So, A is including B and C using add_subdirectory. However, A is > >> producing 2 targets, one of which is a library and I need to link B > >> and C against that library. How would I do that? > >> -- > >> > >> 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 > -- > > 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 >
-- 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