mettle
mettle copied to clipboard
CMake Support
Would it make sense to incorporate John Galbraith's CMake support straight here in the main repository?
https://github.com/JohnGalbraith/mettle/blob/master/CMakeLists.txt https://github.com/JohnGalbraith/mettle/blob/master/cmake/FindMettle.cmake
Sorry, but no. The reason I made mettle's current build system (bfg9000) in the first place is because I dislike CMake enough that I'd rather write my own build system than use it. :)
I do want to make it easier for people to use mettle without having to (directly) install bfg9000 though. I'm hoping to have some time this summer to make .deb packages for mettle as well as putting it on the Conan package manager. Then people would be able to get a compiled version of mettle without all the extra steps.
I dislike CMake enough that I'd rather write my own build system than use it.
CMake is cool. But I can understand you. :-)
Debian package would be great.
I filed #43 to track making a Debian package. I'm most of the way done, and if you want to live on the bleeding edge, you can try using mettle from my testing PPA: https://launchpad.net/~jimporter/+archive/ubuntu/testing. (Note that at the time of this post, I've only verified that it builds a .deb, not that the resulting .deb actually works. I'll do that over the next day or so...)
Reopening this. I think there's probably some value in a minimal CMakeLists.txt. I don't want it to support everything that build.bfg does since that'd just be more maintenance burden, but something simple like "build mettle and libmettle.so and then install everything into the appropriate place" would probably be enough to make most people happy.
@JohnGalbraith Do you mind if I adapt your CMakeLists.txt to include in this repo? It looks like you've already worked out most of the issues, so it seems a waste to do it all again from scratch.