[osg-submissions] Inventor CMake-files

PCJohn peciva at fit.vutbr.cz
Wed Aug 29 06:42:18 PDT 2007


Hi Robert,

I am sending updated CMake files for Inventor plugin.

Hope, you will find some time this week/after weekend (it's not in 
hurry) to put it into SVN. The writer plugin is about 2 months work.

John



PCJohn napsal(a):
> Hi Luigi, David, and Mathieu,
> 
> thanks, now it works perfectly. Cool! I will submit it to Robert shortly.
> 
> The last think, I am missing in OSG CMake system is that it does not 
> find my 3rdParty dir. I wanted to append search for OSG-src/3rdParty and 
> OSG-src/3rdparty. To which file should I look?
> 
> John
> 
> 
> 
> Luigi Calori napsal(a):
>> Hi John and David
>> the macro
>> SETUP_PLUGIN should already support what suggested by  David:
>>
>> just define two variables: one
>> INVENTOR_LIBRARY and INVENTOR_LIBRARY_DEBUG and  then define
>>
>> SET(TARGET_LIBRARIES_VARS INVENTOR_LIBRARY )
>>
>> before calling SETUP_PLUGIN
>>
>> You should change your find file accordingly though, you should do two 
>> finds: one for debug and another for release, like
>>
>> FIND_LIBRARY(INVENTOR_LIBRARY_DEBUG
>>     NAMES  coin2d
>>     PATHS
>>     /usr/local/lib
>>     /usr/lib
>>     /sw/lib
>>     /opt/local/lib
>>     /opt/csw/lib
>>     /opt/lib
>>     $ENV{COINDIR}/lib
>> )
>>
>> FIND_LIBRARY(INVENTOR_LIBRARY
>>     NAMES  Coin coin2
>>     PATHS
>>     /usr/local/lib
>>     /usr/lib
>>     /sw/lib
>>     /opt/local/lib
>>     /opt/csw/lib
>>     /opt/lib
>>     $ENV{COINDIR}/lib
>> )
>>
>>     IF( NOT INVENTOR_LIBRARY_DEBUG)
>>         IF(INVENTOR_LIBRARY)
>>             SET(INVENTOR_LIBRARY_DEBUG INVENTOR_LIBRARY)
>>          ENDIF(INVENTOR_LIBRARY)
>>     ENDIF( NOT INVENTOR_LIBRARY_DEBUG)
>>
>> I think the problem of your find is that you search in the same 
>> FIND_LIBRARY command both for debug and release names, so the find finds 
>> one (the first?)
>> and you use it for both linking
>>
>> hope it helps
>>
>> Luigi
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindInventor.zip
Type: application/x-zip-compressed
Size: 905 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070829/1407c6c3/attachment.bin 


More information about the osg-submissions mailing list