cget icon indicating copy to clipboard operation
cget copied to clipboard

cmake integration

Open maddanio opened this issue 5 years ago • 3 comments

while cget seems to rely heavily on cmake, i cannot seem to find how to ingegrate it into a cmake project. ideally we would like cget to be called to build (ideally optionally fetch prebuilt) dependencies and then link to them, including transitive dependencies. ideally using the modern target syntax

maddanio avatar Jan 05 '21 15:01 maddanio

what would be nice is to be able to have targets for all packages and have them have transitive include and link specs for all their dependencies. should be doable with some cmake foo

maddanio avatar Jan 07 '21 06:01 maddanio

https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html

maddanio avatar Jan 07 '21 07:01 maddanio

ok, I guess the toolchain actually prepares things for this. so all missing for me is to have a macro to run cget and possibly allow local recipes...

maddanio avatar Jan 08 '21 14:01 maddanio