src/CMakeLists: handle C files in a better (?) way