Boost Python Hello World for Cmake 3.12+
On macOS
brew install python3 cmake boost boost-python3
On Ubuntu / Debian
sudo apt install python3 python3-dev cmake libboost-all-dev
mkdir build
cd build && cmake .. && make
cd build
python3
In the python shell
> import greet_ext
> greet_ext.greet()
Has been tested on Intel and Apple Silicon Macs on macOS 12.1, as well as Ubuntu 20.04LTS.