liuliu/ccv — pull request #18 by rjw57 (2012-07-10 19:55:20+00:00)
Title: Change build system to CMake

Hi there. This pull request is to add CMake as a build system. The custom Makefile solution is workable but CMake adds the ability to auto-detect a number of the libraries that one has to manually specify via ./configure at the moment. Similarly it contains logic to automatically handle the C dependencies. Lastly it allows for out-of-tree builds which I find terribly convenient when building for different systems.

I have ported the test system over to CTest which allows all tests to be run via a 'make test' target or a subset matching a regex via 'ctest -R '. Run 'ctest -V' to see output from the tests.

A couple of the commits here also change some #include statements to match the directories which CMake finds for us rather than hard-coded paths.

If this is of interest, I can add in checks for SSE2, -ffast-math and liblinear but I didn't want to spend too much time on this if the concept of using CMake does not interest you.