1 foreach(TARGET ${LLVM_TARGETS_TO_BUILD})
2 set(OCAML_LLVM_TARGET ${TARGET})
6 "${CMAKE_CURRENT_SOURCE_DIR}/llvm_backend.${ext}.in"
7 "${CMAKE_CURRENT_BINARY_DIR}/llvm_${TARGET}.${ext}")
11 "${CMAKE_CURRENT_SOURCE_DIR}/backend_ocaml.c"
12 "${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_ocaml.c")
14 add_ocaml_library(llvm_${TARGET}
17 CFLAGS -DTARGET=${TARGET}
22 "${CMAKE_CURRENT_SOURCE_DIR}/META.llvm_backend.in"
23 "${LLVM_LIBRARY_DIR}/ocaml/META.llvm_${TARGET}")
25 install(FILES "${LLVM_LIBRARY_DIR}/ocaml/META.llvm_${TARGET}"
26 DESTINATION "${LLVM_OCAML_INSTALL_PATH}")