[CMake] Compiling java files to classes then creating a jar

Gerrick Bivins gbivins at objectreservoir.com
Mon Jul 7 16:26:46 EDT 2008


Hello,
Another newbie question, I think I know how to create .java files from swig
using Cmake and I think I know how to create a jar file from .class BUT
I¹m not sure how to call the java compiler (javac) on each .java file to
create my .class files. For starters, how would I loop over the *.java files
in a given directory?
Does, FOREACH support this? I¹m unable to find much info on it in the
³Mastering Cmake² book.
Gerrick 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080707/8929eb31/attachment.htm>


More information about the CMake mailing list