File size: 721 Bytes
9425aed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Odin Foreign Binding for BOB Quantum Engine
# This module provides foreign function bindings to the C ABI interface

if(NOT TARGET bob_quantum)
  message(FATAL_ERROR "bob_quantum target must be defined before odin subdirectory")
endif()

# Odin foreign bindings - no compilation at CMake level, Odin build system is independent
add_custom_target(odin_bindings ALL
  DEPENDS bob_quantum
  COMMENT "Odin foreign bindings verified"
)

# Install Odin module
install(FILES bob_quantum.odin
  DESTINATION share/bob_quantum/odin
)

# Add to binding documentation
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/../BINDINGS_SUMMARY.txt"
  "Odin: bob_quantum.odin (foreign bindings to C ABI) - installed to share/bob_quantum/odin\n"
)