News for hackers. Stuff that matters.
Re:Writing Good C++14 by Default [pdf] by tonyarkles on Thursday September 24, 2015 @03:34AM (#10270343)
Yup, you nailed it. cmake for handling the builds, and the C++11 stdlib covers every platform-specific thing I needed. The only platform-specific thing I needed to do was point the CMakeLists.txt at the correct libusb (libusb.so, libusb.dylib, libusb.dll). Absolutely beautiful.

Edit: to elaborate a little more about cmake... You can use cmake to generate both Makefiles and Visual Studio build files.

On Windows:

mkdir build; cd build; cmake .. -G "Visual Studio 12 2013"; cmake --build .

On OS X or Linux:

mkdir build; cd build; cmake ..; make

There are no comments on this comment yet.