Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga authored Jan 24, 2024
1 parent 4ebd351 commit bb0ed7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/ports/zig_port/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ set(target zig_port)
# Exit here if required dependencies are not met
message(STATUS "Port ${target}")

# Generate bindings
add_custom_target(TARGET ${target}
COMMAND ${Zig_COMPILER_EXECUTABLE} translate-c metacall.h > metacall-bindings.zig -lc -I ${CMAKE_SOURCE_DIR}/source/metacall/include -I ${CMAKE_BINARY_DIR}/source/metacall/include -I ${CMAKE_BINARY_DIR}/source/include
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

#
# Define test
#
Expand Down

0 comments on commit bb0ed7d

Please sign in to comment.