Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrsarm/gmp_test
C-project for test GMP library and CMake build system
https://github.com/mrsarm/gmp_test
c-project cli cmake gmplib
Last synced: about 1 month ago
JSON representation
C-project for test GMP library and CMake build system
- Host: GitHub
- URL: https://github.com/mrsarm/gmp_test
- Owner: mrsarm
- License: gpl-3.0
- Created: 2015-04-28T05:18:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-11T12:08:29.000Z (almost 6 years ago)
- Last Synced: 2024-10-03T16:31:58.757Z (about 1 month ago)
- Topics: c-project, cli, cmake, gmplib
- Language: C
- Size: 17.6 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
gmp_test C-project
==================This is just a test example project.
The only purpose of this project is to use as a test
for **GMP library**, and as an example of how to import
this library in a *CMakes* project.The project uses *CMakes* to build the executable.
Build and execute
-----------------To compile you need first installed the **GMP library**,
in many Linux distribution the package is
named `libgmp-dev`.1. From the source directory, generate the "Makefile":
$ cmake .
2. *Make* the project and generate the executable "gmp_test".
$ make
3. Then execute with:
$ out/gmp_test
4. To install the executable `gmp_test` into `/usr/local/bin`:
$ sudo make install
To install into another folder, execute the step 1
overwriting the `CMAKE_INSTALL_PREFIX` variable, eg.
to install into the `/usr/bin` folder:$ cmake -DCMAKE_INSTALL_PREFIX=/usr .
To clean the compiled binaries and compiled modules:
$ make clean
To clean all compiled files and generated "Makefiles":
$ make clean-all
A more complete example of a C project with
CMake and CHEAT for unit testing is
at https://github.com/mrsarm/helloworld-cAbout
-----Source: https://github.com/mrsarm/gmp_test
Authors: (2015-2018) Mariano Ruiz
License: GPL-3