Clion Cmake auto include math.h library
已回答
is there a way to include math library automatically without the need to add manually to Cmakelists.txt for every project?
请先登录再写评论。
Hello!
You don't need to add math.h to the CMakeLists.txt, you just need to use #include <math.h> in your .c/.cpp file.
And here is a feature request about file template for default main.cpp: https://youtrack.jetbrains.com/issue/CPP-5089. Feel free to comment or upvote it in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.