Hi there,

I am writing a command line app, and Im currently working with MITK circa 
2014.10. I see from the DiffusionMiniApps that it should be possible to do 
something like:


  mitk_create_executable(DiffusionMiniApps
    DEPENDS MitkDiffusionCore MitkFiberTracking MitkConnectomics
    PACKAGE_DEPENDS ITK|ITKDiffusionTensorImage
  )

BUT: When I use the mitk_create_executable macro, the linking to ITK fails. All 
library paths are like -litkvnl_algo, where the link line does not have library 
folders specified using -L so the linking fails.

IF I write stuff like:

     add_executable(${_APP_NAME} ${_APP_NAME}.cxx )
    target_link_libraries(${_APP_NAME} ${_APP_TARGET_LIBRARIES} )
    MITK_INSTALL(TARGETS ${_APP_NAME})


then it would seem that all my ITK libraries are specified with an absolute 
path, and the app links.

So my question is, when mitk_create_executable runs, what might cause all the 
ITK dependencies to be specified as -litkvnl_algo rather than an absolute path 
to a library.

Thanks

Matt



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to