[CMake] CMAKE_Java_LINK_EXECUTABLE

Richard Fuchs fuchsrich at se-core.net
Tue Aug 1 14:18:41 EDT 2006


To answer my own question, yes don't call ADD_EXECUTABLE with java 
files, use ADD_LIBRARY.
>>  
> 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.
>
> Thanks
>
>
> In the root dir:
> PROJECT(SECORE CXX Java)
>
> # Recurse into the common, services, components, products, externals
> # and test subdirectories.
> SUBDIRS(common)
>
> In common dir
>
> SUBDIRS(data_model_class_generator)
>
> In the data_model_class_generator dir:
>
> # List all of the source files to compile
> SET(DATA_MODEL_CLASS_GENERATOR_SRCS ClassAttribute.java 
> CPPConstruct.java DataModelClass.java GenerateCPPClasses.java)
>
> # Compile the data model class generator
> ADD_EXECUTABLE(./bin/dm_class_generator 
> ${DATA_MODEL_CLASS_GENERATOR_SRCS})
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>



More information about the CMake mailing list