Hi,
my plan is to be able to import Yosys as a library from another project. Now that Yosys is using cmake for the build system that makes it fairly easy. However some small adjustments and modifications are needed, but those should all have no impact on how the config and build of Yosys is working currently.
So from an external perspective a cmake config have something like this:
find_package(Yosys)
target_link_libraries(... Yosys::libyosys)
This requires a package config file.
I started with one adjustment in PR 6371 so that building with -fno-rttiis possible.
Another fix in preparation for this was in PR 6294.
Would be interested to know if someone is interested in this? Or if there are potential problems which I should consider.
Thanks,
Tobias