p4lang / behavioral-model

The reference P4 software switch
Apache License 2.0
550 stars 330 forks source link

CMake support #1254

Open fruffy opened 6 months ago

fruffy commented 6 months ago

It would be nice if we could build the behavioral model using CMake instead of relying on autotools. This would make it easier to integrate it with the rest of the P4Lang ecosystem.

OSdakrory commented 6 months ago

I'd like to contribute to this issue, can you let me know how i can solve it.

fruffy commented 6 months ago

I'd like to contribute to this issue, can you let me know how i can solve it.

This could be larger in scope. Essentially what needs to be done is this: https://stackoverflow.com/questions/7132862/how-do-i-convert-an-autotools-project-to-a-cmake-project

There are some modern cmake templates available. An example is https://github.com/cpp-best-practices/cmake_template or https://github.com/kigster/cmake-project-template

SarthakPaandey commented 4 months ago

Hi may work on this @fruffy ?

fruffy commented 4 months ago

Hi may work on this @fruffy ?

Sure! Feel free to make a PR. But it could be a fair bit of work.