[CMake] Why jars not linked to other files directly in cmake
ankit jain
ankitguddu at gmail.com
Wed Mar 25 08:45:56 EDT 2009
2009/3/25 Robert Haines <rhaines at manchester.ac.uk>
> I have seen that only including the directories where jars exist wil not
>> solve the puprose of using those jars. we have to either extract the files
>> from it or either include the directories where the file exists from which
>> jars have been made.
>>
>
> Have you actually tried including the jars themselves? eg
> include_directories(/path/to/jar/mylib.jar) This works fine for me and is
> consistent with how you must list jars in CLASSPATH. Admittedly, using
> include_directories for this feels a bit clunky, but it does work...
>
> Cheers,
> Rob
>
Thanks Rob i checked it again it works now for me actually i run make from
root directory and iam creating a library with some java files listed in my
cmakelist as src but when runnng it from root i need to write
include_directories(${CMAKE_CURRENT_SOURCE_DIR} in sub dir. cmakelist file.
earlier i thought it is not taking jars but actually jars are working fine
and it is not taking files from the sub diretory itselg ..
Generally if we include all files in cmkelist then there is no need to write
above line but mihgt require in java case.
but anyways it works now. thanks for the help..
ankit
>
> --
> Robert Haines
>
> Research Associate, RealityGrid Tel. : +44 (0)161 275 6067
> Research Computing Services Fax. : +44 (0)161 275 0637
> University of Manchester Email: rhaines at manchester.ac.uk
> Oxford Road Web : www.realitygrid.org
> Manchester, M13 9PL : www.rcs.manchester.ac.uk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090325/6bca30b5/attachment-0001.htm>
More information about the CMake
mailing list