concurrentqueue icon indicating copy to clipboard operation
concurrentqueue copied to clipboard

Added CMake support. Only tested on Linux (Ubuntu).

Open zerodefect opened this issue 7 years ago • 5 comments

Added cmake support. Tested on Ubuntu Linux (17.04) using gcc. Any other non-Linux platform or compiler variation will need a tiny bit of work to get it going.

In addition, cmake script now has a 'make install' target (which the current make targets don't have). On my system, concurrentqueue.h and blockingconcurrentqueue.h are installed to a directory in /usr/local/include/moodycamel.

zerodefect avatar Oct 19 '17 19:10 zerodefect

...and I'd welcome someone who is able to test (and/or add support) for the likes of clang, mingw (and Windows).

zerodefect avatar Oct 19 '17 19:10 zerodefect

Hmm. Is there a way to fit all the cmake files under build/?

cameron314 avatar Oct 19 '17 22:10 cameron314

Honestly, that wouldn't really be in the spirit of cmake. Take a look at this very simple example.

zerodefect avatar Oct 19 '17 22:10 zerodefect

The other point that I forgot to make - using CMake it's possible to generate the VS and XCode projects without having to maintain them explicitly.

zerodefect avatar Oct 23 '17 08:10 zerodefect

I'll revisit this once I get my other branch merged. I ended up tripping over my own feet attempting to use new git client.

zerodefect avatar Nov 01 '17 20:11 zerodefect