Llinking ITK (Insight Toolkit) to C++ VS2008 solution without using CMake?

Deadly 提交于 2019-11-29 05:22:46

When configuring ITK with CMake (or cmake-gui) one can set the variable CMAKE_INSTALL_PREFIX to a destination for all output. The default value is C:/Programm Files (x84)/itk

After Configure and Generate have been performed successfully, the solution file (ITK.sln) has been created in the given "Where to build the binaries" directory and can be opened in Visual Studi0 2008. The solution has the default project ALL_BUILD which builds the solution, but it also has a INSTALL project which is skipped by default.

Building this solution (after ALL_BUILD) copies all required lib, .h, .dll etc. files into the path specified before.

This folder structure is the place to link my own project up to.

Linking in your own project

In your own project of VS Studio (I'm on VS 2008) you have to modify your project properties to include the include files:

And you have to modify your project properties to include the library files for linking:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!