nodejs/node-addon-examples

How to setting the binding.gyp file or cMake.js to use external libraries?

lucaslgr opened this issue · 0 comments

Hi folks!

I'm trying to use the powerful C++ Eigen Library(https://eigen.tuxfamily.org/index.php?title=Main_Page) or Armadillo Library(http://arma.sourceforge.net/) through NodeJS as a Addon for a Desktop Application built in Electron for a graduation final project in Engineering.

I'm trying to use https://github.com/nodejs/node-gyp or https://github.com/cmake-js/cmake-js to build it, but until now I couldn't do that. I don't know exactly how I have to linking the Eigen or Armadillo Libraries on setting files (the biding.gyp for example).

Have anyone done something like this ?
Could someone help me please?

OBS: My development is on Windows but the application is a cross-plataform(Linux, Mac, Windows).

Thanks so much in advance!