Copy runtime libs into Go package.
@@ -1223,6 +1223,10 @@ if(${TINYSPLINE_BINDING_REQUESTED})
OUTPUT ${TINYSPLINE_GO_SOURCE_DIRECTORY}
SWIG_ARGS -cgo -intgosize ${TINYSPLINE_GO_INTGOSIZE}
-package tinyspline)
+ foreach(file ${TINYSPLINE_RUNTIME_LIBS})
+ file(COPY "${TINYSPLINE_OUTPUT_DIRECTORY}/${file}"
+ DESTINATION "${TINYSPLINE_GO_SOURCE_DIRECTORY}/pkg/${TINYSPLINE_PLATFORM}")
+ endforeach()
add_custom_command(
TARGET ${TINYSPLINE_GO_CMAKE_TARGET}
POST_BUILD
