ITK/Configuring and Building/VisualStudio

From KitwarePublic
< ITK‎ | Configuring and Building
Revision as of 16:16, 8 March 2016 by Dzenanz (talk | contribs) (slightly better formatting)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

With Visual Studio 2010 on Windows 7 (32-bit):

  • Launch the CMake GUI by starting a Visual Studio Command Prompt (Start->Programs-> Microsoft Visual Studio 2010->Visual Studio Tools->Visual Studio Command Prompt) and running "cmake-gui"
  • Next to "Where is the source code:", click "Browse Source..." and navigate to where you cloned the repository with Git.
  • Next to "Where to build the binaries:", select "Browse Build..." and select a place to build the ITK library. I like to use c:\build\ITK. This directory should NOT be inside the directory where you cloned the repository.
  • Click "Configure", and then specify "Visual Studio 10" as the generator for this project.
  • Choose your build options. I like to uncheck BUILD_EXAMPLES and BUILD_TESTING, because not building them speeds up the build process significantly.
  • Click "Generate".
  • Open Visual Studio 2010
  • Open Project
  • Navigate to the Build directory you specified through CMake
  • Open the ALL_BUILD project
  • From the Build menu, choose "Build Solution" (or "Build ALL_BUILD")