Hi,
this typically occurs if a call like
find_package(ITK)
is missing in your project. The parsed ITKConfig.cmake file introduces
imported targets, e.g. "itkvnl_algo" and CMake can then extract the
absolute library path when linking to the imported target. Without the
find_package call, the "itkvnl_algo" string is just a string and treated
as such when building the linker command line.
With the next MITK release, the MITKConfig.cmake file will take care of
making the appropriate find_package() calls implicitly for MITK
dependencies when you do find_package(MITK). Until then, you probably
are just missing the relevant find_packge() calls yourself.
Best,
Sascha
On 02/25/2015 05:56 PM, Clarkson, Matt wrote:
> 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
------------------------------------------------------------------------------
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