<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 07/18/2015 08:17 AM, Alexandre
      GOUAILLARD wrote:<br>
    </div>
    <blockquote
cite="mid:CAHgZEq6SAWJAdS_KPDb351+Ub5xmNFvcnW+v-gdS1OpOZgNgHg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span style="font-size:13px">dear all,</span>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">I'm trying to use cmake as a super
          build script for another library build system.</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">Using add_custom_command and
          add_custom_target I have managed to handle most of the steps
          so far. My libraries and executable are being built as
          requested across platform.</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">Now I'm trying to import the
          generated tests. Some of the generated executables during the
          build step are self-contained tests that I would like to run
          using ctest and send to a dashboard. So far I have hardcoded
          the revision of the code i'm fetching, and the corresponding
          list of tests. However those tests change pretty often, and I
          would like to have something more flexible there.</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">How could I grep the list of tests
          (knowing that they all end up with ".isolated" a grep would
          do), and loop through the resulting list "add_test"ing them
          one by one AT CMAKE BUILD TIME, after a previous target has
          been built?</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">I googled around, tried a few
          things, but couldn't figure out a way to make it happen.</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">thanks in advance for all advice.</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">Alex.</div>
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">Alex. Gouaillard, PhD, PhD, MBA
            <div>------------------------------------------------------------------------------------</div>
            <div>CTO - Temasys Communications, S'pore / Mountain View</div>
            <div>President - CoSMo Software, Cambridge, MA</div>
            <div>------------------------------------------------------------------------------------</div>
            <div><a moz-do-not-send="true"
                href="http://sg.linkedin.com/agouaillard"
                target="_blank">sg.linkedin.com/agouaillard</a></div>
            <div>
              <ul style="margin:0px;padding:0px 0px
8px;border:0px;outline:0px;font-size:12px;font-family:Helvetica,Arial,sans-serif;vertical-align:baseline;list-style:none;line-height:17px;display:table-cell;width:504px;color:rgb(51,51,51)">
                <li style="margin:0px;padding:8px 12px 2px
0px;border:0px;outline:0px;font-style:inherit;font-size:11px;font-family:inherit;vertical-align:baseline;font-variant:inherit;line-height:1.2em">
                  <dl
style="margin:0px;padding:0px;border:0px;outline:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;font-variant:inherit;line-height:inherit;word-wrap:break-word">
                    <br>
                  </dl>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    Hello Alex,<br>
    <br>
    Do you mean grepping or globbing? Both can be done at configuration
    time using the FILE command. You could perform a file(glob) followed
    by a file(strings) in a loop. I'm not sure what you mean by cmake
    build time. Cmake will generate a buildsystem (configuration time)
    and the buildsystem will do the actual building (build time).<br>
    <br>
    Regards,<br>
    Micha<br>
  </body>
</html>