<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Djou,<br>
      <br>
      You will be better of asking this question on the 'cmake' mailing
      list itself. That is geared towards cmake users. This list is for
      people developing cmake itself.<br>
      <br>
      Here is a cmake example to get you started:<br>
      <br>
      project(DEMO)<br>
      cmake_minimum_required(VERSION 2.8)<br>
      <br>
      add_executable(demo main.cxx)<br>
      <br>
      If you save this to a file called CMakeLists.txt and create a
      build directory, you can call 'cmake <sourcedirectory>' 
      (fill in the actual source directory) and cmake will generate a
      buildsystem for you (i.e. a Makefile or a visual studio project
      file). Then you just call 'make' in the case of a Makefile and
      your executable will be compiled for you.<br>
      <br>
      HTH,<br>
      Micha<br>
      <br>
      On 12/12/2014 10:24 PM, djou akr wrote:<br>
    </div>
    <blockquote
cite="mid:CAMo=naqfgtXUGTyi3vwFV0XrSPyyqDWHh0M4i9pzZPAUvgadyw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>To whom it may concern<br>
              <br>
              I am trying to find how to compile in an automatic (
              programmatically ) way a c++ file without the manual way
              in the terminal (I am on ubuntu)<br>
              <br>
              I mean, while a c++ file is executing it will compile
              another c++ file at run time. Of course this with the use
              of make and cmake.<br>
            </div>
          </div>
          <br>
          Thanks in advance<br>
        </div>
        Best regards </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>