Macaulay2 / mathicgb

Compute (signature) Groebner bases using the fast datastructures from mathic.
2 stars 4 forks source link

CMake build for Mathicgb #16

Closed mahrud closed 4 years ago

mahrud commented 4 years ago

This PR improves the CMakeLists.txt file in the master branch to be a full replacement for the configure.ac script. This is how you would "configure", build, test, and install using CMake:

cmake -GNinja -B tmp -S . -DCMAKE_INSTALL_PREFIX=/usr
cmake --build tmp
cmake --build tmp --target test
cmake --install tmp

The -GNinja option instructs CMake to produce build.ninja files instead of Makefiles to go with the Ninja build system, which is faster and more efficient than make.

Note that Memtailor and Mathic would need to be installed in the CMAKE_INSTALL_PREFIX first.

mahrud commented 4 years ago

PS: the PR also fixes incorrect permissions on source files.