Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ANNOUNCE] OCaml Bitstring 2.0.2
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-01-09 (19:13)
From: Keyan <ml@p...>
Subject: ANN: UseOcaml.cmake script

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:

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

      OUTPUT    loc
      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.