This repository contains the source code for the cooperative lever-pulling task.
- Clone the repository:
git clone --recursive https://github.com/omeisner/om-lever-task
. Note the--recursive
flag. - On Windows:
- Visual Studio 2022 is recommended - the community version is free to download.
- Open Visual Studio and select "open a local folder", then open the repository directory (the
om-lever-task
directory). - In the top menu bar, click "select start-up item" and select a build target. Currently, the main task is called
test_gui_context
. To the left of the startup item, change the build configuration fromx64-Debug
tox64-Release
. - Click the run button to build and run the program.
- On macOS:
- Open a terminal window and type
cmake -version
. If you get an error indicating cmake is not found, or if the version is less than3.5
, download and install cmake. cd
to the repository directory, e.g.cd om-lever-task
- Make a directory called build:
mkdir build && cd build
- Generate build files:
cmake -DCMAKE_BUILD_TYPE=Release -G Xcode ..
- Build a program. Currently, the main task is called
test_gui_context
:cmake --build . --target test_gui_context --config Release
cd
to the build output directory and run the program:cd src/sandbox/test_gui_context/Release
./test_gui_context
- Open a terminal window and type