{"id":31699028,"url":"https://github.com/francescocrimi/cmakesample","last_synced_at":"2026-04-15T12:39:10.373Z","repository":{"id":296790949,"uuid":"994476758","full_name":"FrancescoCrimi/CMakeSample","owner":"FrancescoCrimi","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-21T01:45:22.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T19:14:13.026Z","etag":null,"topics":["c","cmake","cpp"],"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/FrancescoCrimi.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,"zenodo":null}},"created_at":"2025-06-02T01:58:21.000Z","updated_at":"2025-08-21T01:45:25.000Z","dependencies_parsed_at":"2025-06-02T12:18:01.010Z","dependency_job_id":"c7ca63eb-438b-49bf-9b11-6d73a307f77d","html_url":"https://github.com/FrancescoCrimi/CMakeSample","commit_stats":null,"previous_names":["francescocrimi/cmakesample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FrancescoCrimi/CMakeSample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCrimi%2FCMakeSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCrimi%2FCMakeSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCrimi%2FCMakeSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCrimi%2FCMakeSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrancescoCrimi","download_url":"https://codeload.github.com/FrancescoCrimi/CMakeSample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoCrimi%2FCMakeSample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T11:29:19.690Z","status":"ssl_error","status_checked_at":"2026-04-15T11:29:19.171Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","cmake","cpp"],"created_at":"2025-10-08T19:13:10.320Z","updated_at":"2026-04-15T12:39:10.365Z","avatar_url":"https://github.com/FrancescoCrimi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CMakeSample Monorepo\n\nThis repository is a **monorepo** that collects several sample projects in C and C++ managed with **CMake**. The main goal, and above all, is to **demonstrate the functioning of CMake**. Its configuration is particularly versatile, being designed to support the compilation of **all projects** with **two different toolchains**:\n* **MSVC (Microsoft Visual C++)** with dependency management via **Vcpkg**.\n* **MinGW-w64 GCC/Clang** via the **MSYS2** environment.\n\n## Projects Contained\n\nHere is a list of the projects present in this monorepo:\n\n* ### `CApp`\nProject with two console executables and a library in **C**.\n\n* ### `CppApp`\nProject with two console executables and a library in **C++**.\n\n* ### `Gtk3App`\nA project with two gui executables and a library in **C** and **Gtk3**.\n\n* ### `Gtk4App`\nA project with two gui executables and a library in **C** and **Gtk4**.\n\n* ### `GtkmmApp`\nA gui project in **C++** and **Gtkmm4**.\n\n* ### `SQLiteApp`\nA console project in **C** that uses the **SQLite** library.\n\n* ### `SQLiteCppApp`\nA console project in **C++** that uses the **SQLiteCpp** library.\n\n## How to Build the Project\n\nTo build this monorepo, it is essential to have **CMake**, **Ninja**, **Vcpkg** or **MSYS2** installed and configured correctly. The `CMakePresets.json` is configured to simplify the build process with both toolchains.\n\n### Building with MSVC (Microsoft Visual C++) and Vcpkg\n* Make sure that `VCPKG_ROOT` is set correctly in your environment (e.g., `C:\\path\\to\\your\\vcpkg`).\n* Install the necessary project dependencies (e.g., SQLiteCpp) for the MSVC toolchain\n\n### Building with MSYS2 (MinGW-w64 GCC/Clang)\n* **Make sure that the `bin` directory of your MSYS2 installation (e.g., `C:\\msys64\\mingw64\\bin`) is included in your system or terminal session's PATH.** This allows CMake and the build system to find the GCC/Clang compilers and other utilities.\n* Make sure you have installed the necessary libraries via MSYS2's `pacman` (e.g. `pacman -S mingw-w64-x86_64-sqlite3` for SQLite, if you don't manage it with Vcpkg for this toolchain).\n\n## Projects and Tools Used\n\nThis monorepo makes extensive use of the following technologies and libraries, which are essential for its setup and operation:\n\n* **[SQLite](https://www.sqlite.org/index.html)**: A lightweight, self-contained, embedded SQL database library.\n* **[SQLiteCpp](https://github.com/SRombauts/SQLiteCpp)**: A modern C++ wrapper for the SQLite library.\n* **[GTK](https://www.gtk.org/)**: The GNU Image Manipulation Program Toolkit, a cross-platform library for creating graphical user interfaces (GUIs).\n* **[GTKMM](https://www.gtkmm.org/)**: A set of official C++ wrappers for the GTK library, providing an object-oriented interface.\n* **[CMake](https://cmake.org/)**: An open-source, cross-platform tool for managing the software build process. It is the backbone of this monorepo.\n* **[Ninja](https://ninja-build.org/)**: A small build system focused on speed, often used as a generator with CMake.\n* **[MSYS2](https://www.msys2.org/)**: A software environment and distribution for Windows that provides a Unix-like toolset and a package management system for installing compilers (such as MinGW-w64 GCC/Clang) and libraries.\n* **[Vcpkg](https://vcpkg.io/en/index.html)**: A cross-platform C/C++ package manager from Microsoft, used to simplify library acquisition and management.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescocrimi%2Fcmakesample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancescocrimi%2Fcmakesample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescocrimi%2Fcmakesample/lists"}