Skip to content

Oneplus/cpp-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPP Project Template

Build Status

Features

Maybe there are some features in this silly project.

  • build with cmake, maybe make it portable between different platform;
  • hacked configure and Makefile maybe make it a tiny little friendly to the automake use;
  • incorporate gtest framework into thsi project. however, if you hate unittest, i didnt mean to disturb you =(
  • automatically diff with standard output script named ResultDiff.cmake

Make and Test

compiling process.

./configure
make

testing process

make test

Technic Summary

In this example project, I provide a silly library foobar. There is a class called Foo in libfoobar, and it has a method called bar. This stupid method will recieve an integer and judge whether it is smaller than 1024. Also, it want make a joke of user who doesnt have fortran compiler by return false at input of 1025.

Future Work

  • incorpuate ctest into project
  • portable configure and Makefile

About

template for cpp project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published