Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for building with CMake #47

Open
nightlark opened this issue Dec 4, 2021 · 0 comments
Open

Add support for building with CMake #47

nightlark opened this issue Dec 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@nightlark
Copy link
Member

ns-3 merged support for building with CMake on December 1st!

No more waf weirdness! Well, that's probably sticking around for a while, but supporting CMake could make some use cases much easier.

The minimum CMake version we should target is 3.10 to match the minimum version ns-3 allows. For a first pass, helics-ns3 should be able to build as a contrib module like it currently does with the ns-3 build system in charge of the actual build.

Eventually, helics-ns3 should be decoupled from building as a contrib module and should be able to work as a standalone project that uses find_package to locate an already compiled/installed copy of ns-3; this may require some changes to the upstream ns-3 build system to make sure it properly installs compiled ns-3 libraries/headers.

If this works, then package managers (e.g. spack) with ns-3 will work as a way to install ns-3 for building helics-ns3, and helics-ns3 could become a separate spack package that is easy to install and reuse. With the contrib module system this wasn't possible due to contrib modules not being able to build as part of spack compiling ns-3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant