title: Retrieve target properties from cmake build
body: <p>Suppose I have an existing project and it's cmake-configured build directory. How can I retreive some target's properties using this build, provided that I know the target name? I tried creating a separate script like this</p>
  
  <pre><code>get_target_property(VAR target property)
  </code></pre>
  
  <p>but it fails with error</p>
  
  <pre><code>Command get_target_property() is not scriptable
  </code></pre>
  
  <p>Are there any other methods?</p>