[CMake] How to link jar files to a library through cmake
ankit jain
ankitguddu at gmail.com
Fri Mar 20 08:33:50 EDT 2009
2009/3/20 Andreas Pokorny <andreas.pokorny at gmail.com>
> Hello,
>
> 2009/3/20 ankit jain <ankitguddu at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090320/224f0472/attachment.htm>
More information about the CMake
mailing list