Setting build target in CLion

后端 未结 3 2133
粉色の甜心
粉色の甜心 2021-02-19 00:41

I\'m trying to set up CLion (windows 8.1, 64-bit, using cygwin and not mingw), and I\'m trying to compile+run a project, but I don\'t know what to do here:

3条回答
  •  半阙折子戏
    2021-02-19 01:23

    At the end of your CMakeLists.txt you should have a line that reads:

    add_executable(MyTarget ${SOURCE_FILES})
    

    This line specifies the name of your target (the executable is generated with this name).

    If you don't have this line, add it and click on the "Reload changes" link at the top. This line should have been created when CLion created your project.

提交回复
热议问题