On Saturday 16 October 2010 12:13:02 Andreas Schneider wrote: > On Friday 15 October 2010 23:13:41 Michał Czuczman wrote: > > I use CMake for building a multi-platform multi-language project where > > for most parts it fits very well. However, one part of the project is > > written in Java, with some native implementations. So it would be great > > to have a nice Java support in CMake. Using another build system just > > for that part adds one to many build-time dependency. > > > > The pitfalls I've encountered in CMake Java support were: > > * All objects are always rebuilt. > > The target is always considered as outdated, I don't know how to change > this. > > > * The generated JAR file is polluted with build system CMake files. > > I think I have an idea how to fix this. I will implement it. >
Done, you need these two files: http://git.cynapses.org/users/asn/pki.git/tree/cmake/Modules/UseJava.cmake?h=cmake http://git.cynapses.org/users/asn/pki.git/tree/cmake/Modules/JavaClassFilelist.cmake?h=cmake Cheers, -- andreas _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake