I have an external library (a single .so to be generated) that i am building as part of my
This library is to be built with a custom
makefile. This library is meant to depend on some other libraries that are part of my
cmake project and those are driven by
One solution here is of course to take this external library outside of
cmake project, build cmake project and expose stuff with something (e.g. autotools) for consumption with make. however I would like to drive the build entirely with cmake and also on libs that are brought via find_package (those are generated by conan)
I am able to use add_custom_command overall, however for this use case I need to extract all the
compilation/linking properties to feed as input to the makefile in this custom command. Problems i have
- One can not extract target properties properly until after the generation step (properly), cause of presence of generator expressions
- generator expressions do not allow one to walk over them. I can use file(GENERATE) to get 1 property, but those in turn require walking the result of the first (e.g. searching for all dependencies)
- I found
cmake-file-api, which does generate information about the build. However, not for results of
IMPORTEDtargets and those are not exposed as part of
cmake-file-api(for instance for static libs).
Would there be a suggestion on what i can try? Or may be I misunderstand something.