Forward-port from obs-plugintemplate to restore cmake output during the configuration step.
Also updates main CMakeLists.txt and CMakeLists.txt for unit tests, also adds additional build directories to .gitignore file