Giter Club home page Giter Club logo

cmake_template's Introduction

Cmake sample using gtest, gmock and boost.

This is a sample of cmake with gtest, gmock and boost.

Description

  • Gtest, gmock and boost are included as git submodule.
  • Gtest, gmock and boost are build with cmake.

Directory structure are below:

.
├── project
│   ├── target
│   │   └── folder
│   ├── target2
│   │   └── folder
│   ├── target2_test
│   │   └── folder
│   │       └── mock
│   └── target_test
│       └── folder
│           └── mock
├── submodule
│   ├── boost
│   │   └── numeric
│   │       └── ublas
│   └── googletest
│       ├── googlemock
│       └── googletest

Requirement

  • cmake
  • git

Usage

cmake .
make

if you want to execute tests:

make test

or

ctest -V

make_file_list.sh generates sources and headers lists for cmake. With the following command, name_of_target.cmake, which contains lists of sources and headers, is generated.

sh make_file_list.sh path/to/target name_of_target

For instance, if you want to generate target.cmake in this repository, execute below:

sh make_file_list.sh project/target target

Install

git clone https://github.com/i05nagai/cmake_template.git

Licence

MIT

Author

i05nagai

cmake_template's People

Contributors

i05nagai avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

19317362

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.