Better filtering of what is selectable and what isn't.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Select by file position

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>
Improve cmake build system

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>