On 10/7/2010 12:37 PM, Ryan Pavlik wrote:


On 10/07/2010 09:57 AM, Andreas Schneider wrote:
On Thursday 07 October 2010 16:45:49 Andreas Schneider wrote:
My current problem is with javah (C header file generator). This
generator
works on the class files. The class files aren't in
CMAKE_CURRENT_BINARY_DIR they are located in:

${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/<project>.dir/<some>/<directory>/foo

bar.class

So my current problem is how to point the generator there ...
In the language information file, this is<OBJECT_DIR> so is there
something
like CMAKE_CURRENT_OBJECT_DIR?


-- andreas

I made a CMake-based build for the VRPN Java bindings, which require a
javah call. I have no experience actually using them, so I'm not sure if
they work, but they certainly compile. (Of course, I didn't realize
there was CMake Java support, so this is all add_custom_command/target
driven) Perhaps it will help:

http://github.com/rpavlik/vrpn/blob/cmake-java/java_vrpn/CMakeLists.txt

Hope this helps!

Ryan

The java support was broken a while ago when we re-organized the build trees. I don't have much time to work on this, but I would like to get it fixed. The best approach might be a pure custom command approach. We could model it after the scons java support which is quite simple. I am thinking of adding a module for java building into the Modules directory as java does not really fit our language type that well.

Anyone want to help?

-Bill




--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
_______________________________________________
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

Reply via email to