Where does CLion store executable files?

后端 未结 2 727
北恋
北恋 2020-12-08 03:44

I install the CLion on a Ubuntu 14.04. I build my first project with help CMakeLists.txt:

Source file:

#include 
using namespace std;         


        
2条回答
  •  情书的邮戳
    2020-12-08 04:26

    When you run the program, it shows the location at the top of the Run window:

    /home/me/.clion10/system/cmake/generated/ad2f5c60/ad2f5c60/Debug/HelloCLion
    Hello, World!
    
    Process finished with exit code 0
    

    You can modify this location by changing CMAKE_RUNTIME_OUTPUT_DIRECTORY:

    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "/home/me/ClionProjects/Binaries")
    

提交回复
热议问题