Skip to content

Ferencz/cpp-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-manager

cpp-manager is a command-line tool for managing C++ projects. It automates project initialization, dependency management, compilation, and testing.

Features

  • Project Initialization: Create a new C++ project with a standard directory structure.
  • Dependency Management: Add and manage dependencies using Conan or vcpkg.
  • Compilation: Automate the build process using CMake.
  • Testing: Run unit tests using Google Test or Catch2.
  • Module Management: Create and delete headers and source files.

Installation

Prerequisites

  • CMake (>= 3.10)
  • C++ Compiler (e.g., GCC, Clang, MSVC)
  • Conan or vcpkg (for dependency management)

Build Instructions

  1. Clone the repository:

    git clone https://github.com/Ferencz/cpp-manager.git
    cd cpp-manager
  2. Build the project:

    mkdir build
    cd build
    cmake ..
    cmake --build .
  3. Install the binary (optional):

    sudo cmake --install .

Usage

Initialize a Project

cpp-manager init MyProject

Add a Dependency

cpp-manager add zlib/1.2.11

Build the Project

cpp-manager build

Run Tests

cpp-manager test

Create a Header

cpp-manager create header MyClass

Create a Module

cpp-manager create module MyClass --header

Delete a Module

cpp-manager delete module MyClass

List Modules

cpp-manager src --list

Scaffold a Module

cpp-manager src

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

Acknowledgments

  • Optional Conan for dependency management.
  • Optional vcpkg for dependency management.
  • CMake for build automation.