Giter Site home page Giter Site logo

build_system_cs1010's Introduction

For Fellow CEG Students

Instructions on how to use the template

  1. Clone the template into your shell environment.

  2. Create a C++ file in the root directory of the template (there is a default file called prog1.cpp)

  3. Run: cmake .

  4. Run: make

  5. An executable with the same name as the cpp file will be generated in the same directory.

In case you have header files or libraries you wish to import into your project:

  1. mkdir include

  2. Put your header files in the include directory.

  3. This makes your project more organized.

Why use this?

In case you have many cpp files you are working on and want to create an executable for every single cpp file (like how we had a makefile for many problems in our cs1010 assignments), this template would allow you to create as many cpp files as you want and create executables for every single cpp file in the root directory. Plus, it will include your header files in every single cpp file that you create. This makes it easier than running: clang++ -g -Wall -Wextra -Wpedantic -Wdocumentation -o [executable name] [cpp file name] for every cpp file you are working on. Just clone this template once and it works for all your files.

If you are thinking about using WSL Ubuntu for CS2040C, I have my WSL config that helps a lot in turning your CLI into a more IDE type environment. (wsl config)[https://github.com/yzia2000/dotfiles]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.