{"id":18919498,"url":"https://github.com/kurotych/modern-cpp-lib","last_synced_at":"2026-05-09T10:06:17.120Z","repository":{"id":144474256,"uuid":"184296552","full_name":"kurotych/modern-cpp-lib","owner":"kurotych","description":"Investigate ways to create modern cpp project","archived":false,"fork":false,"pushed_at":"2019-09-22T09:43:50.000Z","size":137,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T16:22:46.243Z","etag":null,"topics":["bindings","ci","cmake","codecov","cpp","docker","gcc","gcov","gtest","html","lcov","library","modern","python","testing","travis","unit"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kurotych.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-30T16:31:53.000Z","updated_at":"2019-11-08T17:26:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b44ad5c-7828-440c-bfc2-72c4d36ba9eb","html_url":"https://github.com/kurotych/modern-cpp-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurotych%2Fmodern-cpp-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurotych%2Fmodern-cpp-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurotych%2Fmodern-cpp-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurotych%2Fmodern-cpp-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurotych","download_url":"https://codeload.github.com/kurotych/modern-cpp-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239914935,"owners_count":19717760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bindings","ci","cmake","codecov","cpp","docker","gcc","gcov","gtest","html","lcov","library","modern","python","testing","travis","unit"],"created_at":"2024-11-08T10:38:01.556Z","updated_at":"2026-03-12T20:30:16.963Z","avatar_url":"https://github.com/kurotych.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modern cpp library\n\n## Investigates best way to build modern project for develop UNIX C++ library based on C API for binding any language\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7673e38427c340dd8e534f8f39a91a7f)](https://app.codacy.com/app/armatusmiles/modern-cpp-lib?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=armatusmiles/modern-cpp-lib\u0026utm_campaign=Badge_Grade_Dashboard)\n[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/armatusmiles/moderncpp.svg)](https://hub.docker.com/r/armatusmiles/moderncpp)\n[![codecov](https://codecov.io/gh/armatusmiles/cprogen-core/branch/master/graph/badge.svg)](https://codecov.io/gh/armatusmiles/modern-cpp-lib)\n\n| Build status          | Systems / Compilers         |\n| ------------- | ------------------------------------------ |\n| [![Build Status](https://travis-ci.org/armatusmiles/modern-cpp-lib.svg?branch=master)](https://travis-ci.org/armatusmiles/modern-cpp-lib) | Linux (gcc)   OSX (XCode 10.2 clang) |\n\n## Features\n-   Creates shared(*.so, *.dylib) library\n-   [Google test(gtest)](https://github.com/armatusmiles/modern-cpp-lib/blob/master/tests/main.cpp) simple and powerful test framework\n-   [Catch2](https://github.com/armatusmiles/modern-cpp-lib/tree/add-catch2/tests-catch2) single header test library\n-   [Python bindings](https://github.com/armatusmiles/modern-cpp-lib/blob/master/test_api.py) Load library and call C API function from Python.\n-   [Codecov](https://codecov.io/gh/armatusmiles/modern-cpp-lib) - reports generate automatically\n-   [Docker](https://github.com/armatusmiles/modern-cpp-lib/blob/master/Dockerfile) file and [auto build](https://hub.docker.com/r/armatusmiles/moderncpp) with [Docker Hub](https://hub.docker.com/r/armatusmiles/moderncpp)\n-   [Travis-CI](https://travis-ci.org/armatusmiles/moderncpp) auto build for ubuntu xenial and osx\n-   [Cppcheck](http://cppcheck.sourceforge.net) is a static analysis tool for C/C++ code\n\n## Libraries used\n-   [Google Test (gtest)](https://github.com/google/googletest) - [test](https://github.com/armatusmiles/modern-cpp-lib/blob/master/tests/main.cpp) framework \n-   [gcov](https://linux.die.net/man/1/gcov) / [lcov](https://linux.die.net/man/1/lcov) - generates and shows in html format code coverage\n\n## Build and Run\n```\ngit clone https://github.com/armatusmiles/modern-cpp-lib.git \\\n    \u0026\u0026 cd modern-cpp-lib \\\n    \u0026\u0026 mkdir build \u0026\u0026 cd build \\\n    \u0026\u0026 cmake ../ \\\n    \u0026\u0026 make moderncpp_coverage\n``` \n\n\u003cdetails\u003e\n  \u003csummary\u003ecppcheck  simple example\u003c/summary\u003e\n    \n    cppcheck ./src/\n    \n    Checking src/interface.cpp ...\n    [src/interface.cpp:11]: (error) Array 'a[5]' accessed at index 6, which is out of bounds.\n\n\u003c/details\u003e\n\n###### Notice: For choose catch2 test framework. Should add var -DTEST_TYPE=\"catch2\"\u003c/br\u003e Exmaple : cmake ../ -DTEST_TYPE=\"catch2\"\n\n\u003e \"make moderncpp_coverage\" builds library, runs gtest and generate code coverage(html) report\n\n## References\n-   [ModernCppCI](https://github.com/LearningByExample/ModernCppCI)\n-   [cmake-modules](https://github.com/bilke/cmake-modules)\n-   [Catch2](https://github.com/catchorg/Catch2)\n-   [cppcheck manual](http://cppcheck.sourceforge.net/manual.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurotych%2Fmodern-cpp-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurotych%2Fmodern-cpp-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurotych%2Fmodern-cpp-lib/lists"}