title: CMake: CMakeLists for C11
body: <pre><code>cmake_minimum_required(VERSION 3.6)
  project(Example)
  
  set(CMAKE_C_STANDARD 11)
  set(CMAKE_COMPILER_IS_GNUCC TRUE)
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
  
  set(SOURCE_FILES main.c)
  add_executable(Example ${SOURCE_FILES})
  </code></pre>
  
  <p>I'm learning C11 and I'm using CLion IDE.
  In this IDE only possible option is use of CMake for projects, and I read a few manuals of CMake (in stack overflow, too), and I don't find ready solution to write correct CMakeLists for C11 projects.</p>
  
  <pre><code>set(CMAKE_C_STANDARD 11)
  </code></pre>
  
  <p>This line set C11 standard.</p>
  
  <pre><code>set(CMAKE_COMPILER_IS_GNUCC TRUE)
  </code></pre>
  
  <p>This line set gcc as compiler.</p>
  
  <pre><code>set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
  </code></pre>
  
  <p>This line set compilation flags to default of IDE. </p>
  
  <p>Is my CMakeLists.txt correct? </p>