{"id":22756942,"url":"https://github.com/alextibtab/cxx-template","last_synced_at":"2026-01-08T21:06:16.437Z","repository":{"id":265791895,"uuid":"817022729","full_name":"Alextibtab/cxx-template","owner":"Alextibtab","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-01T22:30:27.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T05:02:31.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alextibtab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-18T21:32:34.000Z","updated_at":"2024-07-02T00:44:37.000Z","dependencies_parsed_at":"2024-12-03T08:47:15.219Z","dependency_job_id":null,"html_url":"https://github.com/Alextibtab/cxx-template","commit_stats":null,"previous_names":["alextibtab/cxx-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextibtab%2Fcxx-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextibtab%2Fcxx-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextibtab%2Fcxx-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alextibtab%2Fcxx-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alextibtab","download_url":"https://codeload.github.com/Alextibtab/cxx-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246290654,"owners_count":20753732,"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":[],"created_at":"2024-12-11T07:16:34.418Z","updated_at":"2026-01-08T21:06:16.349Z","avatar_url":"https://github.com/Alextibtab.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Project Template with CMake\n\nWelcome to the C++ Project Template! This repository provides a basic setup for a C++ project using CMake. It includes scripts for both PowerShell (Windows) and Bash (Linux) to streamline the build process.\n\n## Directory Structure\n\n```bash\nC++-Project-Template/\n├── build/ # Directory where build artifacts will be generated\n├── src/ # Directory containing the source code\n├── scripts/\n│ ├── build.ps1 # PowerShell script for building on Windows\n│ └── build.sh # Bash script for building on Linux\n├── CMakeLists.txt # CMake configuration file\n└── README.md # This file\n```\n\n## Prerequisites\n\n- **CMake**: Make sure CMake is installed on your system. You can download it from [here](https://cmake.org/download/).\n\n## Building the Project\n\n### On Windows\n\n1. Open PowerShell.\n2. Navigate to the project directory.\n3. Run the PowerShell build script:\n    ```powershell\n    ./scripts/build.ps1\n    ```\n4. Navigate to the build directory:\n    ```powershell\n    cd build\n    ```\n5. Run `make` to build the project:\n    ```powershell\n    mingw32-make\n    ```\n6. Run the output binary:\n    ```powershell\n    ./output_binary.exe\n    ```\n\n### On Linux\n\n1. Open a terminal.\n2. Navigate to the project directory.\n3. Make the Bash script executable (only required once):\n    ```bash\n    chmod +x scripts/build.sh\n    ```\n4. Run the Bash build script:\n    ```bash\n    ./scripts/build.sh\n    ```\n5. Navigate to the build directory:\n    ```bash\n    cd build\n    ```\n6. Run `make` to build the project:\n    ```bash\n    make\n    ```\n7. Run the output binary:\n    ```bash\n    ./output_binary\n    ```\n\n## Customizing the Project\n\n- Add your C++ source files to the `src` directory.\n- Modify the `CMakeLists.txt` file to include your source files and any necessary libraries or dependencies.\n\n## Troubleshooting\n\n- Ensure CMake is installed and added to your system's PATH.\n- Check the output of the build scripts for any errors or warnings.\n- Make sure you have the necessary build tools installed (`mingw32-make` for Windows and `make` for Linux).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextibtab%2Fcxx-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextibtab%2Fcxx-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextibtab%2Fcxx-template/lists"}