lsils / mockturtle

C++ logic network library
MIT License
210 stars 139 forks source link

Using mockturtle as a library in another project #550

Closed wei-shen-wang closed 2 years ago

wei-shen-wang commented 2 years ago

I've seen the documentation and I did add the include directory of mockturtule to my include directory but just simply including mock turtule by #include <mockturtle/mockturtle.hpp> doesn't work because of the source code dependency on other library like "lorina".

hriener commented 2 years ago

Indeed, you have to satisfy the dependencies.

There are different approaches for this problem:

You may run eventually into problems with libraries that are not header-only. If there are such dependencies currently included in mockturtle, then they are meant to be only temporary for some experimental features. In some cases, we were, however, not fast enough with cleaning them up. If you catch such a case, then we should fix that in mockturtle.