<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-forward-container">no ideas?<br>
      should i send some pull-request of my current solution instead?<br>
      <br>
      cheers,<br>
      Hannes<br>
      <br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" border="0" cellspacing="0"
        cellpadding="0">
        <tbody>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Subject:
            </th>
            <td>Question about Unit Tests in cross-compile environment</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Date: </th>
            <td>Tue, 26 Sep 2017 22:21:49 +0200</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">From: </th>
            <td>Hannes Schmelzer <a class="moz-txt-link-rfc2396E" href="mailto:hannes@schmelzer.or.at"><hannes@schmelzer.or.at></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">To: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:volkszaehler-dev@demo.volkszaehler.org">volkszaehler-dev@demo.volkszaehler.org</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <pre>I build the vzlogger with the buildroot toolchain and i have troubles 
there with the unit tests.

Actually i simple disable these tests there with setting
'set(ENABLE_GOOGLEMOCK FALSE)' within CMakeLists.txt

I'm not sure if this is the 100% right way.
Fact is, that we cannot run the produced binary on the build host.

Would it be an idea for having some 'if cross-compile' within the 
CMakeLists for switching off the unit tests ?


buildroot today passes these arguments per default to the cmake build:

DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF 
-DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF 
-DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON

maybe we can hook on something there ...

-DBUILD_TEST=OFF

might be an idea.


cheers,
Hannes


</pre>
    </div>
  </body>
</html>