[CMake] How to link jar files to a library through cmake

Andreas Pokorny andreas.pokorny at gmail.com
Fri Mar 20 08:29:21 EDT 2009


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


More information about the CMake mailing list