All Projects → PhDP → cmake-gtest-gbench-starter

PhDP / cmake-gtest-gbench-starter

Licence: other
A cross-platform C++11/14/17 starter project with google test and google benchmark support.

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to cmake-gtest-gbench-starter

fastapi-project-template
DO NOT FORK, CLICK "Use this template" - The base to start an openapi project featuring: SQLModel, Typer, FastAPI, JWT Token Auth, Interactive Shell, Management Commands.
Stars: ✭ 262 (+870.37%)
Mutual labels:  project-template
sparky
A Bootstrap 3 and 4 Sass Starter Project
Stars: ✭ 21 (-22.22%)
Mutual labels:  project-template
docker-django-boilerplate
Minimal boilerplate setup for a Django project with Docker.
Stars: ✭ 41 (+51.85%)
Mutual labels:  project-template
app
Yii 3 application template
Stars: ✭ 157 (+481.48%)
Mutual labels:  project-template
go-todo-backend
Go Todo Backend example using modular project layout for product microservice.
Stars: ✭ 177 (+555.56%)
Mutual labels:  project-template
MonolithicArchitecture
This repository presents an approach on how to build an application using Monolithic architecture, ASP.NET Core, EntityFrameworkCore, Identity Server, CQRS, DDD
Stars: ✭ 18 (-33.33%)
Mutual labels:  project-template
Awesome Cmake
A curated list of awesome CMake resources, scripts, modules and examples.
Stars: ✭ 3,970 (+14603.7%)
Mutual labels:  cmake-examples
AspNet-Core-REST-Service
VS2017/VS2019 project template for ASP.Net Core 3.1/5.0 to create fully functional production ready RESTful services
Stars: ✭ 57 (+111.11%)
Mutual labels:  project-template
opencart-project-template
OpenCart Project Template
Stars: ✭ 16 (-40.74%)
Mutual labels:  project-template
project-template
Yii2 Project Template
Stars: ✭ 53 (+96.3%)
Mutual labels:  project-template
cookiecutter-deeplearning
Project folder structure for doing and sharing deep learning work.
Stars: ✭ 36 (+33.33%)
Mutual labels:  project-template
kedro-starters
Templates for your Kedro projects.
Stars: ✭ 39 (+44.44%)
Mutual labels:  project-template
flask-project-template
DO NOT FORK, CLICK "Use this template" - A github template to start a Flask Project - this uses github actions to generate your project based on the template.
Stars: ✭ 74 (+174.07%)
Mutual labels:  project-template
project skeleton
A skeleton pytorch codebase commonly used across my projects
Stars: ✭ 31 (+14.81%)
Mutual labels:  project-template
cpp14-project-template
A simple, cross-platform, and continuously integrated C++14 project template
Stars: ✭ 64 (+137.04%)
Mutual labels:  project-template
protomate
Python built CLI tool for automated github project initialization. Check the source code documentation here: https://rednafi.github.io/protomate/
Stars: ✭ 15 (-44.44%)
Mutual labels:  project-template
qt-qml-project-template-with-ci
Template for a Qt/QML application with batteries included: GitHub C.I. for your QML app; automated gui testing with Xvfb; automatic code-format checks and more. Compiles for Desktop and Mobile (Linux, Mac, Windows, and Android).
Stars: ✭ 33 (+22.22%)
Mutual labels:  project-template
vanillajs-hello
Start a VanillaJS website using WebPack in just 30 seconds: HTML,CSS,Babel,SASS,Bootstrap,Prettier,Gitpod
Stars: ✭ 24 (-11.11%)
Mutual labels:  project-template
project-template
📂 A template for open source projects.
Stars: ✭ 12 (-55.56%)
Mutual labels:  project-template
tweego-setup
A blank Tweego project with all the trimmings. Uses node and gulp.
Stars: ✭ 40 (+48.15%)
Mutual labels:  project-template

cmake starter with google test and google benchmark

License: MIT

A cross-platform C++11 starter project with google test and google benchmark support. See this project for a similar template with CUDA support.

This project template is using git submodule to include Google Benchmark and Google Test so you need either to do

$ git clone --recursive [email protected]:PhDP/cmake-gtest-gbench-starter.git

or

$ git clone [email protected]:PhDP/cmake-gtest-gbench-starter.git
$ cd cmake-gtest-gbench-starter
$ git submodule init
$ git submodule update

The project compiles a library named nemo (of course: you should change the name, nemo means 'no one') and an executable named nemo_exe.

Organization

  • src has the source files and the CMakeLists.txt to compile the library and executable.
  • include has the header files.
  • test has the tests and related CMakeLists.txt.
  • bench has the benchmarks and related CMakeLists.txt.

The main CMakeLists.txt file at the root of the project has options and further documentation.

Build

Build Status

On Linux/Unix, to build and make the test:

$ mkdir build && cd $_
$ cmake ..
$ make

By default, the makefiles will build the library, executable, tests, and benchmarks. The commands

$ ./test/test_nemo
$ ./bench/bench_nemo

will run the tests and benchmarks. And

$ sudo make install

will install (at least on Linux) the library and executable to your computer's path.

On Windows, you can use cmake to generate Visual Studio build files with the same 'cmake ..' command.

By default, the project will be built in RELEASE mode, use

$ cmake .. -DCMAKE_BUILD_TYPE=DEBUG

to build in DEBUG mode.

See the CMakeLists.txt file to see all the options.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].