corochann / SingleFileExecutionPlugin

Single File Execution Plugin is a plugin for CLion (C/C++ IDE on IntelliJ platform provided by Jetbrain).
MIT License
83 stars 14 forks source link

The line is added but I still cannot run the file #5

Open erelsgl opened 5 years ago

erelsgl commented 5 years ago

I installed the plugin, went into a cpp file, right-clicked and chose "Add executable for a single c/cpp file". Indeed the following line was added into my CMakeLists.txt file:

 add_executable(hello 01-what-is-cpp/1-hello/hello.cpp)

However, I still do not see any run configuration on the top-right panel of Clion... all I see is "Add Configuration".

alphavector commented 5 years ago

@erelsgl, the fact is that by default CMakeList.txt is not updated automatically after the change. You need to enable the "Auto-Reload CMake Project".