cmake function to easily add source files