Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
/ leetcode-cmake Public template

Leetcode CMake template. For easy building, testing, and debugging with CMake, GTest, and VSCode.

License

Notifications You must be signed in to change notification settings

fengkx/leetcode-cmake

Open more actions menu

Repository files navigation

LeetCode CMake

Leetcode CMake template. For easy building, testing, and debugging with CMake, GTest, and VSCode.

Requirements

Run sudo apt install build-essential cmake libgtest-dev to install in Ubuntu> 20.04

Usage

Run ./new.sh <problem name> to create a new problem directory in problems.

Every CPP file in this directory will be a solution to the problem and you can have several solutions for one problem.

Run cmake . then make in either top directory or problem directory to build either all or one problem.

It will compile a binary in the problem directory with the same name as the solution cpp file.

<F5> One Press debug in Visual Studio Code

Once 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 <F5>

vscode-debug.gif

Credits

https://github.com/Pokerpoke/LeetCode

About

Leetcode CMake template. For easy building, testing, and debugging with CMake, GTest, and VSCode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.