Skip to content

VisualStudio solution generator for Magshimim's C/C++ courses from plain source files

License

Notifications You must be signed in to change notification settings

Denloob/magshimim-project-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisualStudio project generator

Set of util scripts for creating Magshimim Exercises (Homework questions) into VisualStudio Solutions and Projects.

Note

This version was tailored for the C++ course. You might be interested in the C course version.

Quick Start

Basic usage:

python main.py <source_dir> <output_dir> <solution_name>

Say you have

/home/Magshimim/week1/
- Stack.cpp
- Stack.h
- main.cpp
- final_answer/

You can run

python main.py /home/Magshimim/week1/ /home/Magshimim/week1/final_answer/ DataStructures

This will create a VisualStudio solution with the name DataStructures in the directory final_answer/


Shortened usage:

python main.py <source_dir>

Say you have

/home/Magshimim/week1/
- /DataStructures
  - Stack.cpp
  - Stack.h
  - main.cpp

You can run

python main.py DataStructures

This will create a VisualStudio solution with the name DataStructures in the directory DataStructures/


Visual Studio Project Generator

Basic Usage:
    python main.py <source_dir> <output_dir> <solution_name>
Shortened Usage:
    python main.py <source_dir>

*Note*: In Shortened Usage, source_dir = output_dir, and the .sln file name is the <source_dir> name.

Flags:
    -h    Show this help message
    -y    Accept all files
    -o    Overwrite project if already exists

Examples:
    Shortened Usage:
        python main.py DataStructures

Contributing

Any help is appreciated!

License

This project is licensed under the GNU General Public License v3.

See LICENSE for more information.

About

VisualStudio solution generator for Magshimim's C/C++ courses from plain source files

Topics

Resources

License

Stars

Watchers

Forks

Languages