Thanks this is really helpful, I will try to integrate those parameters into my build system.
One other question if you allow me: is it possible to call an already existing m file? My m file has like 20 lines and it is using the mentioned signal package, it just returns a single string for me what I need to process within c++. So if it is possible to just run the m file instead of programming all the 20 line in c++ that would be really good.
(Note: I am not allowed to execute octave cli binary for this, I need to embed octave in my application as a library.)