Coder Social home page Coder Social logo

feldmarszalekduda / papuc_exercises Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nadzwyczajnagruparobocza/papuc_exercises

0.0 1.0 0.0 426 KB

Programming: Principles and Practice Using C++ - Exercises

C++ 94.78% CMake 4.95% Shell 0.27%

papuc_exercises's Introduction

Build status Build Status

papuc_exercises

Programming: Principles and Practice Using C++ - Exercises... and more.

Update your fork with changes from the common repository

In the root directory of the project:

  1. add common repository as a git remote:

    git remote add upstream https://github.com/NadzwyczajnaGrupaRobocza/papuc_exercises.git
  2. pull common repository changes to local cache

    git fetch upstream
  3. make sure you're at your main brach

    git checkout master
  4. merge upstream changes to your checkout

    git pull --rebase upstream master

Only step 4 is needed to later repeat the procedure

Initialize gtest submodule

In the root directory of the project:

  1. Make git aware of the fact we have submodule

    git submodule init
  2. Actually pull the submodules

    git submodule update

You're now ready to compile stuff.

Build instructions

In the root directory of the project do the following:

  1. create build directory and enter it

    mkdir build; cd build
  2. run cmake and point it ot the root dir

    cmake ..
  3. run make (point it to the desired target binary) e.g.

    make <target-name>

Note that target name is the same as first argument given to cmake add_executable function.

Adding own code to the build system:

  1. Move your files to your user directory (<project-root>/<user-prefix>/...)

  2. Edit the CMakeLists.txt file in your user directory.

    • In "add_executable" command, replace empty.cpp with the name of your source file.
    • You can add more source files to the add_executable command - it takes in a space separated list of files of any length.
  3. Follow the build instructions to let the cmake magic happen.

papuc_exercises's People

Contributors

abergard avatar kn65op avatar feldmarszalekduda avatar iwobiborski avatar

Watchers

 avatar

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.