[CMake] Is there a tool pretty much like cmake for Java?
Andreas Schneider
asn at cynapses.org
Sat Oct 16 07:35:27 EDT 2010
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
More information about the CMake
mailing list