caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Keyan <ml@pulsschlag.net>
To: "Hezekiah M. Carty" <hcarty@atmos.umd.edu>
Cc: Caml-list@yquem.inria.fr
Subject: Re: [Caml-list] cmake
Date: Wed, 2 Dec 2009 20:15:10 +0100	[thread overview]
Message-ID: <AC937DE5-732F-4FC8-AD19-27FB56372A3C@pulsschlag.net> (raw)
In-Reply-To: <3a360f590912020829n2ed403c1ob19b4381c57d5857@mail.gmail.com>

hi,

i just had a look. these files are pretty large. it will take me a while to fully understand them. thanks for the links.

regards,
keyan

On 2 Dec 2009, at 17:29, Hezekiah M. Carty wrote:

> On Wed, Dec 2, 2009 at 4:08 AM, Keyan <ml@pulsschlag.net> wrote:
>> hi,
>> 
>> i am currently getting into caml again, and would like to integrate it with my c++ project.
>> 
>> the project i am working on, is completly build with cmake. i tried to search the internet to find ready cmake-scripts or tutorials how to integrate cmake into an exisisting cmake-project, but could not find anything. my question thereore is, how is it done best?
>> 
>> what i want to do is the following:
>> in addition to the main-project build, i want to build my own code-analysis tools.
>> 
>> make -> build main project + all ocaml-tools
>> make ocaml-tool-1 -> build only cmake-tool-1
>> etc.
>> 
>> does anyone have any experience with that?
>> 
> 
> The PLplot project (http://plplot.sf.net/) uses CMake for its build
> system, including bindings for OCaml.  The most relevant files for the
> OCaml portion are:
> 
> http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/cmake/modules/ocaml.cmake?revision=10526&view=markup
> http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/bindings/ocaml/CMakeLists.txt?revision=10527&view=markup
> http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/bindings/ocaml/plcairo/CMakeLists.txt?revision=10528&view=markup
> 
> The first file (ocaml.cmake) performs detects the presence of the
> OCaml compiler(s), camlidl and a few libraries.  The two
> CMakeLists.txt files define the actual compilation steps for two
> separate components of the OCaml bindings (camlidl + C + OCaml).
> 
> CMake does not have formal OCaml support, so all of the compilation
> commands, outputs and dependencies are specified by hand.
> 
> Hope this helps.
> 
> Hez
> 
> -- 
> Hezekiah M. Carty
> Graduate Research Assistant
> University of Maryland
> Department of Atmospheric and Oceanic Science


      reply	other threads:[~2009-12-02 19:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 10:08 cmake Keyan
2009-12-02 16:29 ` [Caml-list] cmake Hezekiah M. Carty
2009-12-02 19:15   ` Keyan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AC937DE5-732F-4FC8-AD19-27FB56372A3C@pulsschlag.net \
    --to=ml@pulsschlag.net \
    --cc=Caml-list@yquem.inria.fr \
    --cc=hcarty@atmos.umd.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).