[CMake] using cmake with java

Brad King brad.king at kitware.com
Tue Apr 11 13:26:53 EDT 2006


Gaetan Lehmann wrote:
> 
> Hi,
> 
> Currently, I'm using the ADD_CUSTOM_TARGET() macro to compile the java  
> tests in WrapITK. The problem is that those files are rebuild for each  
> make.
> Is there a better way to build java programs ?

Use ADD_CUSTOM_COMMAND, and then add only one ADD_CUSTOM_TARGET that 
depends on the outputs of the custom commands.

-Brad


More information about the CMake mailing list