?Hi,
switch on MITK_BUILD_EXAMPLES in CMake and add MitkNewModule to the
MODULE_DEPENDS of your Plugin's CMakeLists.txt. That should be enough. If you
really want to copy the module to your Modules folder instead, make sure to add
NewModule to Modules/ModuleLists.cmake.
Best,
Stefan
________________________________
Von: Žiga Gradišar <z.gradi...@gmail.com>
Gesendet: Freitag, 17. August 2018 17:55
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Using NewModule in a Plugin
Hello,
because I need to open .txt files in a plugin that I am making, I put the
example module "NewModule" in my MITK build (in modules), and then tried to use
"mitk::ExampleDataStructure" for reading files. I was unable to do that, due to
an error showing:
"fatal error: MitkNewModuleExports.h: No such file or directory"
I included "<mitkExampleDataStructure.h>", if I didn't, an error
"error: ‘ExampleDataStructure’ in namespace ‘mitk’ does not name a type" would
show.
Is there a way I can use ExampleDataStructure in my plugin?
Best regards, Žiga Gradišar
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users