[CMake] Linking a library that is made by cmake

Petr Bena benapetr at gmail.com
Mon Dec 15 03:34:46 EST 2014


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?


More information about the CMake mailing list