-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Thanks for your example project, that helped me a lot in the CMake chaos.
I have the same hierarchy and I was lost between the use of all the functions, especially with find_package().
How can we avoid the root's CMakeLists.txt that glues the app and the libs together?
Because I have several apps that use different libraries, there is a problem.
It would be nice to be able to compile the app directly inside the app folder.
- Either we link the lib in the app's CMakeLists.txt using
add_subdirectories(../libs)but that's considered anti-pattern.
1.1. Pro: At the app compilation, the libs are compiled too. - We somehow export the libs without installing them and import them in the app CMakeLists.txt with
find_package()/find_libraries()
2.1. It seems thefind_*()don't trigger the compilation of those libraries and they need to be installed in the OS, what I don't want to do.
Any thought on that?
Metadata
Metadata
Assignees
Labels
No labels