I'm trying to create a CLion plugin which needs to set some additional CMake generation options, as well as the build directory. I've come across some promising code in the `CMakeSettings` class, and have managed to use this inside a custom project component to set a custom build directory and generation option. My questions are:
- Is it possible to customise the directory in which the cmake command runs?
- Is there a better way to customise the build options without overwriting the user's global CMake settings?
- The custom build directory has the target name appended to it (e.g. my/build/directory/Debug), is there a way to avoid this?