Add CMakeFiles to gitignore, add defines.h for variable definitions in selector.cpp