[CMake] CMAKE_Java_LINK_EXECUTABLE
Brad King
brad.king at kitware.com
Tue Aug 1 14:19:35 EDT 2006
Richard Fuchs wrote:
> After hunting through CMakeJavaInformation.cmake, it doesn't seem to
> have a CMAKE_Java_LINK_EXECUTABLE target/property (or whatever the
> correct name for it is). Does this mean that you can't call
> ADD_EXECUTABLE with java files and I need to use ADD_LIBRARY or
> something? CMakeLists.txt files below.
[snip]
> # Compile the data model class generator
> ADD_EXECUTABLE(./bin/dm_class_generator ${DATA_MODEL_CLASS_GENERATOR_SRCS})
Don't java programs have to be run using "java myprog"? CMake has no
notion of a java executable. Try ADD_LIBRARY to create a jar.
-Brad
More information about the CMake
mailing list