add CMakeLists.txt for build as simple library

- needs cmake-avr toolchain