On Fri, Jun 3, 2016 at 9:11 AM, Guillaume Munch <g...@lyx.org> wrote:
> > What are the > advantages? What are the basic commands? How do you set up > out-of-directory builds? > > I am far from an expert; however, a self-contained and somewhat compact application of CMake is available here: https://github.com/jkulesza/NERS590_Project. The basic commands are in the src/CMakeLists.txt file (which are almost certainly *not* following best practices, but they and their simplicity have served me well). A simple script to drive out-of-source builds is shown in build/. Advantages I might identify, without attempting to articulate further: it automates the Makefile generation process removing much of the manual labor (particularly as source files are added/removed). In principle, it can also find compilers/libraries on the system quite readily and can be set up to flexibly use them in various combinations. With various targets, it can also be setup to build release, debug, etc. for (straightforward) use with continuous-integration testing. P.S. I hope you don't mind me chiming in...