amaork / libi2c

Linux i2c library, support C/C++/Python
MIT License
174 stars 63 forks source link

Switched to single build system CMake #19

Open Psyhich opened 1 year ago

Psyhich commented 1 year ago

Integrated Meson, Makefile, and setup.py into single more popular CMake build ecosystem

I'm not really familiar with deployment into pypi so would require help integrating it into this codebase

Default workflow for building project looks like: Configuring:

cmake -S ./ -B build <additional options>

You can add additional options with -D

Building:

cmake --build build/ -j

Running tests:

ctest build/

Creating package:

cpack build/ -G ZIP

Or installing directly:

cmake --build build/ -t install