Go to file
2024-03-14 01:31:32 +02:00
.github/workflows chore(actions): add automated testing 2024-03-10 19:44:15 +02:00
src refactor(validation): move validation to separate file 2024-03-14 01:31:32 +02:00
.clang-format style: update .clang-format 2024-03-10 16:33:34 +02:00
.gitignore build(ninja): add ninja support 2024-03-10 18:58:51 +02:00
CMakeLists.txt refactor: change cpp files to cc 2024-03-14 00:28:52 +02:00
CPPLINT.cfg style: add CPPLINT.cfg file 2024-03-10 16:35:01 +02:00
LICENSE Create LICENSE 2024-03-10 21:11:40 +02:00
README-lv.md docs(lv): add windows and mocos compilation instructions 2024-03-12 13:33:03 +02:00
README.md docs(lv): add windows and mocos compilation instructions 2024-03-12 13:33:03 +02:00

Overview

Tests

Latvian Description

Project

This is a simple C++ project that includes the function for our colleagues to test. The function (i.e., the main function and the subfunctions used in it) is located in lib.cpp.

Additional libraries and executable

Our library prep is concerned with preparation of data prior to the function call. test.cpp is a single test file that will contain the tests of our colleagues and our own development tests. GTest is used for tests.

Usage

Compilation on Linux and MacOS

Compilation on Linux and MacOS requires cmake and CXX compiler (e.g., g++).

MacOS

MacOS require a separate installation of gcc13.

Using Homebrew

brew install cmake gcc@13
brew install ninja # optional

Linux

You know what to do.

ninja

cmake -G Ninja -B
# or
# cmake -G Ninja -B build -D CMAKE_CXX_COMPILER=g++-13 # MacOS
cd build
ninja
./main

Make

cmake -B build
# or
# cmake -B build -D CMAKE_CXX_COMPILER=g++-13 # for MacOS
cd build
make
./main

Windows and/or VSCode

Install CMake and VSCode CMake Tools extension.

  • Open project as root in VSCode.
  • Press View->Command palette... or Ctrl+Shift+P and run CMake: Build.

Resulting binaries are build/main -- the program and build/runtests to run tests specified in test.cpp.