2009/3/25 Robert Haines <[email protected]>
> 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: [email protected]
> Oxford Road Web : www.realitygrid.org
> Manchester, M13 9PL : www.rcs.manchester.ac.uk
>
>
_______________________________________________
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