Thanks, that worked nicely.
Matt
On 6 Sep 2011, at 15:15, Sascha Zelzer wrote:

> Hi Matt,
> 
> in your ExternalProject/Apps/CMakeLists.txt try the following:
> 
> MITK_USE_MODULE(MyModule)
> INCLUDE_DIRECTORIES(${ALL_INCLUDE_DIRECTORIES})
> 
> The MITK_USE_MODULE macro is unfortunately undocumented, but quite useful for 
> this case.
> 
> Best,
> Sascha
> 
> 
> On 09/06/2011 04:04 PM, Clarkson, Matt wrote:
>> Hi there,
>> 
>> In ExtApp.cpp there is a call to RegisterCoreExtObjectFactory that requires
>> #include<mitkCoreExtObjectFactory.h"
>> 
>> how is the #include resolved?
>> 
>> I am trying to do the same thing in my external project, which is set up 
>> very similar to the project template.
>> I have a module containing a core object factory, and I want to #include the 
>> .h file from my main application.
>> So where do I configure the include folder, of the module?
>> 
>> So, say I have
>> 
>> ExternalProject/Apps
>> ExternalProject/Apps/MyApplication.cpp
>> ExternalProject/Modules
>> ExternalProject/Modules/MyModule/Algorithms/PleaseIncludeMe.h
>> ExternalProject/Modules/MyModule/IO
>> ExternalProject/Plugins
>> 
>> in MyApplication.cpp, I need to use code in  the MyModule/Algorithms file.
>> So, in MyApplication.cpp, how do I set the include path to correctly 
>> #include the file PleaseIncludeMe.h
>> 
>> Thanks
>> 
>> Matt
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Special Offer -- Download ArcSight Logger for FREE!
>> Finally, a world-class log management solution at an even better
>> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
>> download Logger. Secure your free ArcSight Logger TODAY!
>> http://p.sf.net/sfu/arcsisghtdev2dev
>> _______________________________________________
>> mitk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mitk-users
> 


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to