Hi Thomas, The CTK CMake macros handling the building and dependency checking for the plug-ins have not been tested with multiple directories containing plug-ins. I assume that is what you have: the MITK Modules/Bundles directory and your own plug-in directory, all in the same CMake project, right?
This line: https://github.com/MITK/MITK-ProjectTemplate/blob/master/CMakeLists.txt#L324 tells the CTK macros which plug-ins are "yours" (build in your CMake project). All plug-ins not matching the regular expressions are considered "external". Usually, the MITK plug-ins are pulled into external projects using this: https://github.com/MITK/MITK/blob/master/MITKConfig.cmake.in#L134 whereas the "plugin-use-file" is generated here: https://github.com/MITK/MITK/blob/master/CMakeLists.txt#L556 Using MITK and the CTK plug-ins the way I assume you do is actually not supported (read: not tested). I am pretty sure you can make it work if you know what you are doing, but MITK really is designed to be used as a third-party toolkit using find_package(MITK) with MITK_DIR pointing to a separate build tree. Best, Sascha On 10/13/2011 03:49 PM, Thomas Wolf wrote: > Hi all, > > as the CTK migrated part of our projects compiles now, I stumbled upon > one last obstacle: > > While building our own plugins (ported to ctk after the wiki > guidelines), the dependencies to MITK-owned CTK plugins are not found. > > error is eg.: > 1>-- Generated: /vc9_x64/MITKPlugins/src/DGraphInput-alldep-withext.txt > 1>CMake Error at > 3rdParty/CTK/CMake/ctkMacroValidateBuildOptions.cmake:192 (MESSAGE): > 1> org_ethz_isosurface depends on unknown external targets: > 1> org_mitk_gui_qt_common > > the project is set up accordingly to the project template now, except > that MITK is not a superbuild, but included before... > > As i did some reading in the relevant makefiles now and came up empty > handed yet, i wonder about the find mechanism for those. > > What is the correct wayto find MITK-plugins for an extApp? > > Thx& Regards, > Thomas > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
