Can elixir_make build c++ project that use CMake?

I’m working on building an Elixir NIF (Native Implemented Function) version of a C++ project that uses CMake. I’m exploring using elixir_make for the build process, but I’m stuck on how to integrate a CMake-based project with elixir_make . What’s the best way to configure elixir_make to work with a CMake build system, and are there any examples or tips for handling this setup?

The C++ code organized as follow:

- src
  |- CMakeList.txt
  |- MakeFile
- include
- test

Build instruction go like this mkdir build; cd build; cmake ...; make

I have never used it, but there seems to be a package on Hex for using cmake.

https://hexdocs.pm/elixir_cmake

1 Like

Maybe GitHub - helium/erlang-h3: Erlang binding for Uber's H3 spatial coordinate library or GitHub - elixir-explorer/adbc: Apache Arrow ADBC bindings for Elixir can serve as examples.

1 Like

It didn’t work out of the box but I’ve learned how it works :slight_smile: turn out it was just a Mix task

1 Like