This will make it more convenient for Linux/macOS users to have static & shared library as well as header files installed on users' system. Easier for development and integrate.
Tested only on Ubuntu 18.04. But it should be very same on macOS.
Note 2 things
This doesn't take into account of supporting build on Windows yet as I see it's heavily based on visual studio already.
3 examples are not included in the build flow due to it needs more modifications as certain example uses thread, etc. Might tackle this in the future.
This will make it more convenient for Linux/macOS users to have static & shared library as well as header files installed on users' system. Easier for development and integrate.
Tested only on Ubuntu 18.04. But it should be very same on macOS.
Note 2 things
PS. related to https://github.com/BinomialLLC/crunch/issues/17 as along the process, I have to add a couple of casting in 2 lines to pass the complier error of ambiguous function call.