Clion Cmake auto include math.h library

Answered

is there a way to include math library automatically without the need to add manually to  Cmakelists.txt for every project?

0
1 comment

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.

0

Please sign in to leave a comment.