[CMake] cmake and java + eclipse

2013-09-27 Thread ycollette . nospam
Hello, I used cmake to build a java project. It worked fine. Now, I wanted to build an eclipse project via the -G Eclipse CDT4 - Unix Makefiles. The generated project seems to be a C/C++ projecty which will build Java files. Is it possible to build a pure Java project using cmake ? Best

Re: [CMake] cmake and java + eclipse

2013-09-27 Thread Eric Noulard
2013/9/27 ycollette.nos...@free.fr: Hello, I used cmake to build a java project. It worked fine. Now, I wanted to build an eclipse project via the -G Eclipse CDT4 - Unix Makefiles. The generated project seems to be a C/C++ projecty which will build Java files. As the nale suggest

Re: [CMake] cmake and java + eclipse

2013-09-27 Thread Alexander Neundorf
On Friday 27 September 2013, ycollette.nos...@free.fr wrote: Hello, I used cmake to build a java project. It worked fine. Now, I wanted to build an eclipse project via the -G Eclipse CDT4 - Unix Makefiles. The generated project seems to be a C/C++ projecty which will build Java files

[CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread Benjamin Ruard
Hi everybody, I use CMake to wrap a c++ library in Java with swig. When I use linux OS it works very well, but when I use windows OS there is a problem. Indeed, the compilation works fine but the dll has not the correct method/fonction inside. After several researches on the web I find I must use

Re: [CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread David Cole
Are you sure you don't just need an: extern C { } block around a function implemented in a C++ file...? On Thu, Aug 4, 2011 at 7:30 AM, Benjamin Ruard ru...@artenum.com wrote: Hi everybody, I use CMake to wrap a c++ library in Java with swig. When I use linux OS it works very well, but when

Re: [CMake] [Cmake/SWIG/JAVA/WINDOWS] add -Wl,--kill-at flag

2011-08-04 Thread Benjamin Ruard
Thanks for your answer, but The block: extern C { ... } already exists. Regards. Benjamin JEANTY-RUARD Le jeudi 04 août 2011 à 08:40 -0400, David Cole a écrit : Are you sure you don't just need an: extern C { } block around a function implemented in a C++ file...? On Thu, Aug 4,

Re: [CMake] CMake + SWIG = Java JNI problems

2010-03-23 Thread Chris Hamons
Anybody want to take a stab at this? Maybe point me to the e-mail address of somebody who could help. I've read what documentation exists and poked around the source code to no avail. Google gives no helpful answers. Thanks, --Chris On Sun, Mar 21, 2010 at 11:20 PM, Chris Hamons

[CMake] CMake + SWIG = Java JNI problems

2010-03-21 Thread Chris Hamons
Hello everyone, I'm having trouble mixing cmake and swig to make a java JNI module. It looks roughly: IF(DEFINED SWIG_JAVA) FIND_PACKAGE(JNI REQUIRED) include_directories(${JNI_INCLUDE_DIRS}) SET(CMAKE_SWIG_OUTDIR

[CMake] Cmake for Java

2007-10-11 Thread Rakesh Kukkamalla
Hi, Is ADD_CUSTOM_TARGET the best method to compile java files and create a jar? I tried ADD_LIBRARY with language enabled but the jar file that is being built has more files in it than just the class file. Any better solutions available?