Hi,

easiest way would be to add your library as module to MITK. See the 
MyAwesomeLib module in the MITK-ProjectTemplate for an example.


If you want to keep your lib separate from your MITK(-ProjectTemplate) for 
whatever reason, you can consider adding it as a external dependency in either 
the clean/hard way by writing all the CMake stuff (look at the CMakeExternals 
directory for examples) and hence integrate it to the superbuild, or the "quick 
and dirty" way by modifying the CMake code so it just allows to set the path to 
your library and then write the CMake stuff right into your plugin build 
script. See the IGT module for getting an idea (CMakeLists.txt and 
MITKIGTHardware.cmake in Modules/IGT ditectory).


Best,
Stefan

________________________________
Von: Albert Alises <ironicpsy...@gmail.com>
Gesendet: Mittwoch, 7. September 2016 13:06
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Link shared library to a MITK Plugin

Hello,

I have created a .so shared library with some functions and filters. I want to 
use this library in a MITK plugin. How can I link this library for use in a 
specific plugin?

Greetings,
Albert.

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to