Re:“Modern” C++ Lamentations (2018)
by jcelerier on Wednesday January 12, 2022 @05:11AM
(#29904442)
> We have a root project that's fully CMake, that orchestrates our sub libraries (also using CMake, declared with ExternalProject_Add)
well, those are not sub-libraries but external projects with their own build-system. I have sublibraries in submodules and add them with add_subdirectory and everything shows and is auto-completed correctly.
Re:“Modern” C++ Lamentations (2018)
by dureuill on Wednesday January 12, 2022 @07:42AM
(#29905542)
Thanks. We've been using external projects since some of them are old style CMake, ripe with global variables, but apparently we could've used add_subdirectory for some other libs. I'll keep that in mind for future refactorings and libraries.
well, those are not sub-libraries but external projects with their own build-system. I have sublibraries in submodules and add them with add_subdirectory and everything shows and is auto-completed correctly.