For usage see the example program.
For installation run this :
git clone --depth=1 https://github.com/Luminous-99/mos6502_emulator.git &&
cd mos6502_emulator &&
mkdir build &&
cd build &&
cmake .. &&
sudo cmake --install . --component headers &&
cmake --build .
if you want it as a shared library run :
sudo cmake --install . --component shared
or for a static library :
sudo cmake --install . --component static