Build and run project that use math.h in Clion
<p>How do I add flags like <code>-lm</code>(for math.h) in Clion to build and run a c file?  </p>

<p>I basically want to use <code>pow()</code> function from <code>math.h</code> in my code and run and debug the same in Clion.  </p>

<p>I'm new to CMake.<br>
This is my CMakeLists.txt:</p>

<pre><code>cmake_minimum_required(VERSION 3.5)
project(Assign2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES main.c)
add_executable(Assign2 ${SOURCE_FILES})
</code></pre>