Hi,

adapted from UseLATEX.cmake, i wrote a UseOcaml.cmake script, which 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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to