Yes! That is where I meant! (dang email doesn't read minds properly:) BTW, I have a problem I couldn't fix. When doing an add_jar with source in the current dir and resource files (image files) in a sub-directory, the resource files in the jar are at the class base instead of below. Example;
Want: x.jar ---- classpath1 ---------classpath2 ------------classA ------------images ----------------Z.img Get: x.jar ---- classpath1 ---------classpath2 ------------classA ----images -------Z.img Any ideas? Allen > On Wednesday, January 12, 2011 15:32:08 you wrote: > > Andreas, > > Thanks for providing these files! I have finally been able to progress on > > converting our java product to cmake. I have one suggestion: > > > > Add to the add_java function the classpath for the target; > > > > set(${_TARGET_NAME}_CLASSPATH > > ".${CMAKE_JAVA_INCLUDE_PATH_FINAL}/${_TARGET_NAME}.jar" PARENT_SCOPE) > > Wouldn't be > > set(${_TARGET_NAME}_CLASSPATH > "${CMAKE_JAVA_CLASS_OUTPUT_PATH}/${_TARGET_NAME}.jar" PARENT_SCOPE) > > more correct on the end of the add_jar function? > > -- andreas >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake