1. ITK Configuring and Building in VisualStudio
With Visual Studio 2010 on Windows 7 (32-bit):
五、编译Helloword
(1)任何位置建立目录 hello, hello/bin, hello用来存放源程序, bin 为程序编译目标。拷贝ITK下的Examples\Installation中的CMakeLists.txt和HelloWorld.cxx到hello目录下。
(2)使用 CMake 进行配置:打开Cmake,选择源目录和目标目录路径,
Where is the source code: 点击 Browse, 选择 D:\Projects\ITK Projects\hello
Where to build the binaries: 点击 Browse, 选择 D:\Projects\ITK Projects\hello\bin
如图6。
(3)点击Configure(假设没有找到 ITK 路径, 则须要手动指定)。等全部条目都变成白色后再点击Generate生成项目,如图7。
(4)双击打开 hello/bin下生成的HelloWorld.sln, 自己主动进入VS 2010,如图8, 编译并执行项目。如图9,至此成功。
參考资料:
[1] http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio
[2] http://www.bokeyi.com/ll/2014/04/06/itk%E5%9C%A8vs2010%E4%B8%8B%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85%E4%BD%BF%E7%94%A8/
ITK Configuring and Building in VisualStudio及hello world程序编译
原文:http://www.cnblogs.com/jhcelue/p/7135881.html