[Insight-users] strange linking problem
John Drescher
drescherjm at gmail.com
Fri Jun 14 08:48:45 EDT 2013
> i got it working now with minimum code necessary. I had to manually include
> all
> the ITK libs in the project properties in the linker page: additional
> dependencies.
You should never have to touch this when using CMake with your
project. There is something seriously going wrong here.
> I am using the ITK 4.4.
> In cmake i have :
>
>
> find_package(ITK REQUIRED)
> include(${ITK_USE_FILE})
>
>
> TARGET_LINK_LIBRARIES(ITK ${ITK_LIBRARIES} DMPlugInBasic.lib Foundation.lib
> )
>
> and i included the directory where the libs are in the vc++ directories.
> Still it seems they are
> not included in the project... If somebody has any idea why i could still
> appreciate it!
>
> However as a test, i got the example MutualInformationImageToImageFilter
> working without
> manually doing anything and all the libs were automatically there.
>
> So... I am really getting tired of windows environment. I am a physicist,
> if i would have any self regard i would switch to linux.....
>
> p.s. about the "l" letter issue
>
> This guy made his own cmake file
> http://www.itk.org/pipermail/insight-users/2012-August/045503.html
>
That looks like a qmake .pro file to me not CMake. How are you using that?
John
More information about the Insight-users
mailing list