How to change include dirs, library dirs and libraries with CLion

前端 未结 1 541
暖寄归人
暖寄归人 2021-02-13 15:15

In CLion, how can I specify the include directories where the C++ compiler will look for header files? Also, how do I setup the libraries to link against, and their library dire

相关标签:
1条回答
  • 2021-02-13 15:29

    In CLion, the CMakeLists.txt file(s) for your project are the system of record for your build system and settings. What's shown in the GUI is derived from the build script. This is similar to the way IntelliJ uses a Maven pom.xml file as the system of record for a Java build and shows things in the IDE based on the file. Based on my past experience with IntelliJ, I expect that JetBrains will make this a more bidirectional experience (updating the GUI will edit the CMakeLists.txt) over time.

    0 讨论(0)
提交回复
热议问题