Skip to content

yhfudev/cpp-romancal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RomanCal

A Roman number calculator

This is a example project to setup a C/C++ project with autoconf/automake, static/dynamic library, unit test, continuous integration, doxygen doc etc.

COMPILING

Travis Appveyor Coverity
romancal Travis Build status romancal Appveyor Build status Coverity Scan Build Status

You need to download the C unit test library check, or C++ unit test libary catch.

To compile the software from distribution file, try

./configure --enable-static --disable-shared --enable-debug --with-libcheck=$(pwd)/../check-0.11.0/
make

For the developer who want to regenerate the Makefile, try

autogen.sh

If you want to generate the document of the project, you may need to install following packages:

doxygen

RUN DEMO

The command line format is

./src/romancal <left> <op> <right>

where 'left' and 'right' are the Roman numbers, and 'op' is one of '+', '-'.

RUN TESTS

Run the command to test the Roman Number library:

make check