title: How to set LOCAL_LDFLAGS/LOCAL_CPPFLAGS with cmake in ndk?
body: <p>How to set LOCAL_CPPFLAGS/LOCAL_CFLAGS/LOCAL_LDFLAGS with cmake? I want to reduce so size, but the tutorials i have read are all about mk files. What should I do in cmakelists.txt?</p>
  
  <p>I directly set LOCAL_CPPFLAGS/LOCAL_CFLAGS/LOCAL_LDFLAGS, but it seems not work.</p>
  
  <pre><code>set(LOCAL_CPPFLAGS "${LOCAL_CPPFLAGS} -ffunction-sections,-fdata-sections")
  set(LOCAL_CFLAGS "${LOCAL_CFLAGS} -ffunction-sections,-fdata-sections")
  set(LOCAL_LDFLAGS  "${LOCAL_LDFLAGS} -Wl,--gc-sections,--icf=safe")
  </code></pre>