How to run executable in IDE after opening Makefile in a new project?
Answered
I'm a newbie to CLion, and am on version 2021.1. I've used Project->Open->Makefile to create a new project. It imports the project and builds the target ELF executable ok. The executable shows up in the project window with a ? for file type. How can I execute/debug this executable within this project? The run/debug config shows only the Makefile. How do I get an executable debug configuration like when building projects using cmake alone? Thanks.
Please sign in to leave a comment.
Hello!
CLion automatically creates a Makefile Application configuration for each target from the top-level Makefile. In the Executable field you need to provide the full path to the binary. Please see https://www.jetbrains.com/help/clion/makefiles-support.html#create-makefile-config.