[CMake] CMake, Java and JARs
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Mar 3 19:25:28 EST 2008
On Monday 03 March 2008, Filipe Sousa wrote:
> I'm new to java, so I might be doing something wrong.
>
> Here is the CMakeLists.txt:
>
> project(suplemento Java)
> set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
> find_package(GWT)
> add_library(suplemento src/pt/ipb/client/Suplemento.java)
> target_link_libraries(suplemento ${GWT_LIBRARIES})
>
> The contents of
>
> GWT_LIBRARIES=
> /opt/google-web-toolkit/gwt-user.jar; \
> /opt/google-web-toolkit/gwt-dev-linux.jar; \
> /opt/google-web-toolkit/gwt-servlet.jar
>
> And the output
>
> [100%] Building Java object
> CMakeFiles/suplemento.dir/src/pt/ipb/client/Suplemento.class /usr/bin/javac
> /home/fsousa/tmp/gwt/src/pt/ipb/client/Suplemento.java -d
> CMakeFiles/suplemento.dir/src/pt/ipb/client
> /home/fsousa/tmp/gwt/src/pt/ipb/client/Suplemento.java:3: package
> com.google.gwt.core.client does not exist import
> com.google.gwt.core.client.EntryPoint;
> ^
> For some reason cmake is ignoring the jars.
No idea, but in general the java support of cmake isn't very mature.
Alex
More information about the CMake
mailing list