{"id":18078969,"url":"https://github.com/fengkx/leetcode-cmake","last_synced_at":"2025-06-17T06:06:06.985Z","repository":{"id":97513077,"uuid":"307784351","full_name":"fengkx/leetcode-cmake","owner":"fengkx","description":"Leetcode CMake template. For easy building, testing, and debugging with CMake, GTest, and VSCode.","archived":false,"fork":false,"pushed_at":"2020-10-28T01:31:57.000Z","size":837,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T22:41:03.193Z","etag":null,"topics":["cmake-template","leetcode","leetcode-cpp","template-project"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fengkx.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":"2020-10-27T17:54:11.000Z","updated_at":"2024-09-11T01:33:07.000Z","dependencies_parsed_at":"2024-03-15T11:53:27.742Z","dependency_job_id":null,"html_url":"https://github.com/fengkx/leetcode-cmake","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/fengkx/leetcode-cmake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengkx%2Fleetcode-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengkx%2Fleetcode-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengkx%2Fleetcode-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengkx%2Fleetcode-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fengkx","download_url":"https://codeload.github.com/fengkx/leetcode-cmake/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengkx%2Fleetcode-cmake/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260301993,"owners_count":22988722,"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":["cmake-template","leetcode","leetcode-cpp","template-project"],"created_at":"2024-10-31T12:16:56.362Z","updated_at":"2025-06-17T06:06:06.951Z","avatar_url":"https://github.com/fengkx.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetCode CMake\n\n\u003e Leetcode CMake template. For easy building, testing, and debugging with CMake, GTest, and VSCode.\n\n## Requirements\n\n- [CMake](https://cmake.org/)\n- [GTest](https://github.com/google/googletest)\n- GCC/Clang and make\n\nRun `sudo apt install build-essential cmake libgtest-dev` to install in Ubuntu\u003e 20.04\n\n## Usage\n\nRun `./new.sh \u003cproblem name\u003e` to create a new problem directory in `problems`.\n\nEvery CPP file in this directory will be a **solution** to the problem and you can have several solutions for one problem.\n\nRun `cmake .` then `make` in either top directory or problem directory to build either all or one problem.\n\nIt will compile a binary in the problem directory with the same name as the solution cpp file.\n\n### `\u003cF5\u003e` One Press debug in Visual Studio Code\n\nOnce install the needed extensions on VSCode (`C/++`, `CMake Tools`) and debugger with mi support installed on your system, You can debug the currently active file with just a `\u003cF5\u003e`\n\n![vscode-debug.gif](.github/vscode-debug.gif)\n\n# Credits\n\nhttps://github.com/Pokerpoke/LeetCode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengkx%2Fleetcode-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffengkx%2Fleetcode-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengkx%2Fleetcode-cmake/lists"}