Feature of manifest mode which makes it easy to add the default CMake targets of each dependency to a CMakeLists.txt. #23256
NickStrupat
started this conversation in
Ideas
Replies: 2 comments
-
As it may seem good for single target projects, it's not good for everything else. Please, make explicit calls to
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, and what I'm proposing would work just fine for projects which produce a single target with I don't see how adding this feature would regress the existing implementation, nor change any of the points you've listed. It would however simplify the use of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm loving the manifest mode of vcpkg. It is vastly improving the way C++ dependencies are managed. It's getting very close to npm, pip, nuget, etc. in terms of terseness and simplicity of linking (many) libraries with just a
find_package
call and atarget_link_libraries
call.It has me wondering about a nice way to programmatically consume the output of the
usage
files. I'm not sure if that's the right description of the output of avcpkg install
where you get:Essentially what I'm proposing is for a feature which automatically adds to
CMakeLists.txt
the default CMake targets from all of one's dependencies. I'm imagining adding something like this to one's mainCMakeLists.txt
:... which would behave as if one had the following:
... and enumerated them manually in
CMakeLists.txt
:Beta Was this translation helpful? Give feedback.
All reactions