Skip to content

JayTwoLab/vscode-cmake-cpp-linux-exe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-cmake-cpp-linux-exe

This project provides a template and environment setup for developing C++ executable programs on Linux using CMake and Visual Studio Code. It is ideal for those who want a quick start with C++ development in a Linux environment, featuring ready-to-use configurations and minimal boilerplate.

Features

  • Pre-configured .vscode settings for seamless development in Visual Studio Code
  • Example hello.cpp source file to demonstrate a simple C++ executable
  • CMakeLists.txt for CMake-based build automation
  • Linux executable output setup
  • Organized structure for easy extension and scaling

Getting Started

Prerequisites

Setup

  1. Clone this repository:

    git clone https://github.com/JayTwoLab/vscode-cmake-cpp-linux-exe.git
    cd vscode-cmake-cpp-linux-exe
  2. Open the folder in Visual Studio Code.

  3. Make sure all required extensions and tools are installed (see Prerequisites).

  4. Use the VSCode command palette (Ctrl+Shift+P) to run: CMake: Configure and then CMake: Build.

  5. Run the executable as built in your configured output directory.

Project Structure

  • .vscode/ - VSCode-specific settings for C++ and CMake integration
  • CMakeLists.txt - CMake build definition
  • hello.cpp - Example source file

Usage

This repository serves as a starting point for your own C++ executable projects. Feel free to modify hello.cpp and extend as needed for your application.

License

  • MIT

Author

About

.vscode setting for C++ and Linux (executable program type)

Resources

License

Stars

Watchers

Forks

Packages

No packages published