This is how I got code completion and stuff in clion with ardupilot (even though it doesnt use cmake or make)