I switched to emacs as my C++ ide. I am using irony mode, company, rtags, and since all of my projects are using cmake, cmake-ide. I cant realy find something online on how the workflow works with cmake-ide? How can I compile targets and run the resulting binarys using cmake-ide? Currently I am doing this in terminal mode inside emacs, but I hope I can do this using cmake-ide.


Assuming you have installed rtags on your machine and set this:

(require 'rtags) 

then you would just do:

M-x cmake-ide-compile

That would do the rest for you.

for running the program refer to this: https://stackoverflow.com/questions/9593880/compile-and-run-a-c-program-in-emacs

or you can change your CMakeList.txt to run some tests.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.