From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 5C1F3BBAF for ; Sat, 9 Jan 2010 20:13:25 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlYDAM5jSEvCX7gsgWdsb2JhbACPT4wKAQEWJLgfhC8E X-IronPort-AV: E=Sophos;i="4.49,248,1262559600"; d="scan'208";a="41341729" Received: from mailhost.mis.mpg.de ([194.95.184.44]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 09 Jan 2010 20:13:24 +0100 Received: from twww.mis.mpg.de (twww.mis.mpg.de [194.95.185.34]) by mailhost.mis.mpg.de (8.13.8/8.13.8) with ESMTP id o09JDM9G020818; Sat, 9 Jan 2010 20:13:22 +0100 (MET) Received: from [192.168.1.33] (brln-4d0cc00c.pool.mediaWays.net [77.12.192.12]) (authenticated bits=0) by twww.mis.mpg.de (8.13.8/8.13.8) with ESMTP id o09JDMe2015192 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 9 Jan 2010 20:13:23 +0100 (MET) Subject: ANN: UseOcaml.cmake script Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Keyan In-Reply-To: <20100109100812.GA26610@annexia.org> Date: Sat, 9 Jan 2010 20:13:17 +0100 Cc: caml-list@inria.fr Content-Transfer-Encoding: quoted-printable Message-Id: <6AB3C109-6D52-409B-A2C9-404B99B7C117@pulsschlag.net> References: <20100109100812.GA26610@annexia.org> X-Mailer: Apple Mail (2.1077) X-MIS-Check-Sender: OK, user zahedi() has authenticated himself with PLAIN. X-Spam: no; 0.00; ocaml:01 node:01 node:01 mli:01 mli:01 cmxa:01 cmxa:01 lib:01 ocaml:01 site-lib:01 cheers:01 sourceforge:01 wrote:01 unix:01 compile:01 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=20 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/modu= les/UseOcaml.cmake?revision=3D509&view=3Dmarkup 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=