use CMake build system
export compile commands