Code Monkey home page Code Monkey logo

gmp_test's Introduction

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-c

About

Source: https://github.com/mrsarm/gmp_test

Authors: (2015-2018) Mariano Ruiz [email protected]

License: GPL-3

gmp_test's People

Contributors

mrsarm avatar

Stargazers

 avatar

Forkers

mateus558

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.