SWIG module: be aware of generated java files
This fixes an issue when another target depends on generated files and CMake cannot determine how to build them.
It probably makes sense to do the same for other languages, but i've only tested it with java so far.
Original issue: https://github.com/retuxx/tinyspline/issues/73