Path: blob/devel/elmergrid/src/metis-5.1.0/BUILD-Windows.txt
3204 views
Building METIS requires CMake 2.8, found at1http://www.cmake.org/. CMake generates Visual Studio project files,2which then can be built using Visual Studio. There are two ways to3generate visual studio files: using the command line and using the4CMake GUI.56Using the command line7----------------------89Open the command prompt and cd to the METIS source directory. Run1011> cmake --help1213and look at the list of generators for the Visual Studio studio you14want to build for. For example, the generator for Visual Studio 201015is called "Visual Studio 10".1617After you have found the appropriate generator, run1819> .\vsgen -G "<GENERATOR>"2021to generate the project files. The project files will be placed22build\windows.232425Using the CMake GUI26-------------------2728It is also possible to use the CMake GUI, distributed with CMake. To29do this, open the CMake GUI, and browse to the location of METIS'30source with the "Browse Source" button. You can also change the binary31directory. This is where the Visual Studio project files will be32placed. Click "Generate" to select the correct visual studio version33and build the project files.3435Using the VS project files36--------------------------3738The Visual Studio project will be called METIS.sln. Open it in Visual39Studio. If the configuration is not already "Release", set it to40"Release". Type F7 to build. The METIS library will be in41<BINARY_DIR>\libmetis\Release and the executable programs will be in42<BINARY_DIR>\programs\Release. (<BINARY_DIR> will be build\windows if43you used the command line or whatever you choose if using the CMake44GUI.)454647