Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Keyan <ml@pulsschlag.net>
Cc: caml-list@inria.fr
Subject: ANN: UseOcaml.cmake script
Date: Sat, 9 Jan 2010 20:13:17 +0100	[thread overview]
Message-ID: <6AB3C109-6D52-409B-A2C9-404B99B7C117@pulsschlag.net> (raw)
In-Reply-To: <20100109100812.GA26610@annexia.org>

Hi,

i am not sure, if this is of interest here, but i give it a try. i use cmake heavily to compile my projects, so i wrote 
a UseOcaml.cmake script, adapted from UseLATEX.cmake, to do the job for me. it can be found here:

http://yars.svn.sourceforge.net/viewvc/yars/branches/yars-refactoring/modules/UseOcaml.cmake?revision=509&view=markup

it is not complete yet, but it allows to easily compile ocaml-binaries in the following way:

  ADD_OCAML_TARGET(
      OUTPUT    loc
      MAIN      loc.ml
      SOURCES   file_node.ml  files.ml  io.ml  file_statistics.ml  message_node.ml
      HEADERS   file_node.mli files.mli io.mli file_statistics.mli message_node.mli
      LIBRARIES unix.cmxa str.cmxa extLib.cmxa
      INCLUDES  /opt/local/lib/ocaml/site-lib/extlib
      )

one current problem is that i cannot add multiple entries to the INCLUDES.

i am happy to receive comments.

cheers,
keyan

      parent reply	other threads:[~2010-01-09 19:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-09 10:08 [ANNOUNCE] OCaml Bitstring 2.0.2 Richard Jones
2010-01-09 10:55 ` [Caml-list] " Mehdi Dogguy
2010-01-09 11:23 ` Matthieu Dubuget
2010-01-09 11:33   ` Matthieu Dubuget
2010-01-09 19:13 ` 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=6AB3C109-6D52-409B-A2C9-404B99B7C117@pulsschlag.net \
    --to=ml@pulsschlag.net \
    --cc=caml-list@inria.fr \
    /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