JuliaMath / openlibm

High quality system independent, portable, open source libm implementation
https://openlibm.org
Other
507 stars 139 forks source link

Add CMake support #286

Closed ryonaldteofilo closed 8 months ago

ryonaldteofilo commented 8 months ago

I've been using this library to achieve consistent floating-point maths in cross-platform multiplayer projects at work. We use CMake to cross-compile across different platforms. Thought it would be useful to add this so other can easily integrate the library to their projects as well :)

ViralBShah commented 8 months ago

While we will continue with the existing build system, happy to include a cmake build as well. Can you make a PR to the README mentioning it and how to generate shared libraries with the cmake build?

ryonaldteofilo commented 8 months ago

ah yea I've just opened a pr adding CMake build instructions on the README and additional changes to allow building it as a shared lib