Copy go.mod into the lib directory.
@@ -1233,7 +1233,12 @@ if(${TINYSPLINE_BINDING_REQUESTED})
COMMAND
${CMAKE_COMMAND} -E copy
"${TINYSPLINE_GO_SOURCE_DIRECTORY}/${TINYSPLINE_GO_CMAKE_TARGET}.go"
- "${TINYSPLINE_GO_INTERFACE_FILE}")
+ "${TINYSPLINE_GO_INTERFACE_FILE}"
+ COMMAND
+ ${CMAKE_COMMAND} -E copy
+ "${TINYSPLINE_GO_SOURCE_DIRECTORY}/go.mod"
+ "${TINYSPLINE_OUTPUT_DIRECTORY}"
+ BYPRODUCTS "${TINYSPLINE_OUTPUT_DIRECTORY}/go.mod")
add_custom_command(
TARGET ${TINYSPLINE_GO_CMAKE_TARGET}
POST_BUILD
