title: print complete CFLAGS/CXXFLAGS of CMake project
body: <p>Is it possible to print the complete <code>*CFLAGS</code> and <code>*CXX_FLAGS</code> of a CMake project (of all targets?)?</p>
  
  <p>I tried looking in <code>CMakeCache.txt</code> after configuring and building the project, but all the <code>*C*FLAGS*</code> related variables are almost empty, and anyway do not contain my project settings, such as <code>-D</code> and <code>-I</code> flags specific to my dependencies.</p>
  
  <p>Why I want to do this? In order to create a configuration file for the clang-complete vim plugin: <a href="https://vim.sourceforge.io/scripts/script.php?script_id=3302" rel="nofollow noreferrer">https://vim.sourceforge.io/scripts/script.php?script_id=3302</a></p>