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
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hezekiah M. Carty <hcarty@a...>
Subject: Re: [Caml-list] cmake
On Wed, Dec 2, 2009 at 4:08 AM, Keyan <> 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 ( uses CMake for its build
system, including bindings for OCaml.  The most relevant files for the
OCaml portion are:

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.


Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science