PolarisJunior / pjutil

C++ utilities to supplement the standard library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmake-template

Boilerplate for establishing a new C++ project using CMake.

Instructions

  1. Add a your-project-name directory to the include and src directories, this is where you will put your .hpp and .cpp files respectively.

  2. Add at least one source file to be compiled.

  3. Add the source files to the ${LIB_NAME} target in the add_library call of the root CMakeLists.txt.

  4. Add additional tests as .cpp files under the test directory. Update the ${ALL_TESTS} variable to include the name/path of the new test, without the .cpp extension.

  5. Build with cmake . or cmake . -GNinja to use ninja instead.

Testing

Tests use the gtest framework. If gtest is not installed on your system, tests will not be enabled.

  • If built with make, tests can be ran with make test. Verbose tests can be ran with ctest --verbose.
  • If built with ninja, tests can be ran with ninja test.

About

C++ utilities to supplement the standard library.

License:MIT License


Languages

Language:CMake 79.3%Language:C++ 20.7%