Thanks! I had already managed but forgot to mention it.

Now it's here so any one in the future can find it:) 

Best,
Miguel 
 
 
On Tuesday, December 3, 2013 21:44 CET, Sascha Zelzer 
<[email protected]> wrote: 
 
> Hi Miguel,
> 
> You can directly link to any third-party library. Before calling 
> MACRO_CREATE_MITK_CTK_PLUGIN, add something like
> 
> include_directories("${MY_THIRD_PARTY_INCLUDE_DIRS}")
> 
> to your plug-in's CMakeLists.txt file and after it link the third-party 
> libs this way (the variable PLUGIN_TARGET will contain the plug-in's 
> target name):
> 
> target_link_libraries(${PLUGIN_TARGET} ${MY_THIRD_PARTY_LIBRARIES})
> 
> If you need to link this third-party library with multiple plug-ins / 
> modules, it might be more convenient to create a fake "module config 
> file" so you could make use of the MODULE_DEPENDENCIES argument of the 
> MACRO_CREATE_MITK_CTK_PLUGIN macro.
> 
> Best,
> Sascha
> 
> On 11/21/2013 01:04 PM, Miguel Nunes wrote:
> > Hello MITK team,
> >
> > I have a question on how should I link my plugin against a *.lib file.
> > The plugin has the .h files necessary to develop my plugin, but I cannot
> > add the cpp files, so I build libraries from these cpp files,
> > statically, so I can add them to my plugin project.
> >
> > The question is how to do it, and where on the cmake files.
> >
> > Should I create a module for this, and then add the module in the plugin
> > dependencies? or can I directly add somehow the lib in the
> > MACRO_CREATE_MITK_CTK_PLUGIN ?
> >
> >
> > Best regards,
> > Miguel
> >
> > ------------------------------------------------------------------------------
> > Shape the Mobile Experience: Free Subscription
> > Software experts and developers: Be at the forefront of tech innovation.
> > Intel(R) Software Adrenaline delivers strategic insight and game-changing
> > conversations that shape the rapidly evolving mobile landscape. Sign up now.
> > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> > _______________________________________________
> > mitk-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mitk-users
> 
 
-- 
VRVis Zentrum fuer Virtual Reality und Visualisierung 
Forschungs-GmbH                  FN: 195369h, HG Wien
Donau-City-Strasse 1              +43(0)1 20501 30100
A-1220 Wien, Austria        web:<http://www.vrvis.at> 


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to