title: CMake building a library with ECM
body: <p>I am trying to build this library <a href="https://github.com/KDE/pulseaudio-qt" rel="nofollow noreferrer">https://github.com/KDE/pulseaudio-qt</a> for a custom linux version for an embedded device created with yocto. The SDK yocto produces does not contain the extra-cmake-modules that the library needs to be build. After sourcing the environment setup script of the SDK I tried running cmake on the library:</p>
  
  <pre><code>-- Could NOT find ECM (missing: ECM_DIR)                                                              
  --                                                                                                    
   * ECM (required version &gt;= 5.44.0), Extra CMake Modules., &lt;https://kde.org/products/frameworks/&gt;     
  
  CMake Error at /opt/board_sdk/0.6.0/sysroots/x86_64-boardsdk-linux/usr/share/cmake-3.12/Modules/FeatureSummary.cmake:459 (message):                                                                       
    feature_summary() Error: REQUIRED package(s) are missing, aborting CMake                            
    run.                                                                                                
  Call Stack (most recent call first):                                                                  
    CMakeLists.txt:9 (feature_summary) 
  </code></pre>
  
  <p>After that I tried installing the ECM modules manually. They ended up in <code>/usr/share/ECM</code>, so I tried setting ECM_DIR to this location before running cmake with:</p>
  
  <pre><code>export ECM_DIR=/usr/share/ECM
  </code></pre>
  
  <p>But the same error still occurs. Can somebody assist me in this? I have not tucked into cmake at all at this point.</p>