Skip to content

Getting Started: CLI (macOS)

Wonsup Yoon edited this page Apr 13, 2021 · 9 revisions

Prerequisites

Install Command Line Tools or Xcode

  • Command Line Tools: xcode-select --install
  • Xcode

Install CMake

Build

  1. Download and extract latest version.
  2. Open terminal and go to the extracted directory
  3. Prepare build files
$ cmake -B build .
  1. Move to build directory
$ cd build
  1. Build
$ make -j$(nproc)

Test

  • Running parts
$ ./app/kens/kens-part1
$ ./app/kens/kens-part2
$ ./app/kens/kens-part3
$ ./app/kens/kens-part4
$ ./app/kens/kens-part1-unreliable
$ ./app/kens/kens-part2-unreliable
$ ./app/kens/kens-part3-unreliable
$ ./app/kens/kens-part4-unreliable
  • Running prebuilt solutions
$ ./app/kens/kens-part1-run-solution 
$ ./app/kens/kens-part2-run-solution 
$ ./app/kens/kens-part3-run-solution 
$ ./app/kens/kens-part4-run-solution 
$ ./app/kens/kens-part1-unreliable-run-solution 
$ ./app/kens/kens-part2-unreliable-run-solution 
$ ./app/kens/kens-part3-unreliable-run-solution 
$ ./app/kens/kens-part4-unreliable-run-solution