CMPT 433 Sample Assignment Build Structure

This is a working project that you can use as the basis for your assignments.

Sturcture

  .
  ├── app
  │   ├── include
  │   │   └── badmath.h
  │   ├── src
  │   │   ├── badmath.c
  │   │   └── main.c
  │   └── CMakeLists.txt           # Sub CMake file, just for app/
  ├── hal
  │   ├── include
  │   │   └── hal
  │   │       └── button.h
  │   ├── src
  │   │   └── button.c
  │   └── CMakeLists.txt           # Sub CMake file, just for hal/
  ├── CMakeLists.txt               # Main CMake file for the project
  └── README.md

Note: This application is just to help you get started! It also has a bug in its computation (just for fun!)

Usage

Address Sanitizer

Suggested addons

Other Suggestions

Manually Running CMake

To manually run CMake from the command line use:

  # Regenerate build/ folder and makefiles:
  rm -rf build/         # Wipes temporary build folder
  cmake -S . -B build   # Generate makefiles in build\

  # Build (compile & link) the project
  cmake --build build

Finer Points