2009/3/20 Andreas Pokorny <andreas.poko...@gmail.com> > Hello, > > 2009/3/20 ankit jain <ankitgu...@gmail.com>: > > Hi all, > > > > I am creating a library through add_library command of java files. > > Now i want to link it with some jar files which contain some classes > which > > is needed to build that library. > > > > target_link_libraries is not working in this case. > > What do you mean by link? > For java it should be sufficient to add the jar files to the class > path. You can do that > with the INCLUDE_DIRECTORIES command. > > kind regards > Andreas >
Can we set the classpath from cmake. Actually through include directories it is not taking. i have to extract the fiels from the jar and then the library is build otherwise simply including the jar files using include_directories not working. Iam not sure abotu classpath since it is not being set through cmakelist and even when i set it through bash it is not taking those jar files. Can u tell me how to do that with an example. Thanks.. Ankit
_______________________________________________ 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