aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/ocaml/llvm/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/ocaml/llvm/CMakeLists.txt')
-rw-r--r--bindings/ocaml/llvm/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/CMakeLists.txt b/bindings/ocaml/llvm/CMakeLists.txt
new file mode 100644
index 0000000..4956fa4
--- /dev/null
+++ b/bindings/ocaml/llvm/CMakeLists.txt
@@ -0,0 +1,11 @@
+add_ocaml_library(llvm
+ OCAML llvm
+ C llvm_ocaml
+ LLVM core support)
+
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/META.llvm.in"
+ "${LLVM_LIBRARY_DIR}/ocaml/META.llvm")
+
+install(FILES "${LLVM_LIBRARY_DIR}/ocaml/META.llvm"
+ DESTINATION lib/ocaml)