ITK/Configuring and Building/VisualStudio: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
(slightly better formatting) |
(Update to tool versions from mid-2019) |
||
Line 1: | Line 1: | ||
With Visual Studio | With Visual Studio 2017 on Windows 10 (64-bit): | ||
* Launch the CMake GUI | * Launch the CMake GUI (version 3.15) from the start menu | ||
* Next to "Where is the source code:", click "Browse Source..." and navigate to where you cloned the repository with Git. | * 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. | * 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 | * Click "Configure", and then specify "Visual Studio 15 2017" as the generator and "x64" as the platform 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. | * 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". | * Click "Generate". | ||
* Open Visual Studio | * Click "Open Project". This will start a new Visual Studio instance. | ||
* From the Build menu, choose "Build Solution" (or "Build ALL_BUILD") | * From the Build menu, choose "Build Solution" (or "Build ALL_BUILD") |
Revision as of 18:50, 18 July 2019
With Visual Studio 2017 on Windows 10 (64-bit):
- Launch the CMake GUI (version 3.15) from the start menu
- 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 15 2017" as the generator and "x64" as the platform 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".
- Click "Open Project". This will start a new Visual Studio instance.
- From the Build menu, choose "Build Solution" (or "Build ALL_BUILD")