Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/elmergrid/src/metis-5.1.0/BUILD-Windows.txt
3204 views
1
Building METIS requires CMake 2.8, found at
2
http://www.cmake.org/. CMake generates Visual Studio project files,
3
which then can be built using Visual Studio. There are two ways to
4
generate visual studio files: using the command line and using the
5
CMake GUI.
6
7
Using the command line
8
----------------------
9
10
Open the command prompt and cd to the METIS source directory. Run
11
12
> cmake --help
13
14
and look at the list of generators for the Visual Studio studio you
15
want to build for. For example, the generator for Visual Studio 2010
16
is called "Visual Studio 10".
17
18
After you have found the appropriate generator, run
19
20
> .\vsgen -G "<GENERATOR>"
21
22
to generate the project files. The project files will be placed
23
build\windows.
24
25
26
Using the CMake GUI
27
-------------------
28
29
It is also possible to use the CMake GUI, distributed with CMake. To
30
do this, open the CMake GUI, and browse to the location of METIS'
31
source with the "Browse Source" button. You can also change the binary
32
directory. This is where the Visual Studio project files will be
33
placed. Click "Generate" to select the correct visual studio version
34
and build the project files.
35
36
Using the VS project files
37
--------------------------
38
39
The Visual Studio project will be called METIS.sln. Open it in Visual
40
Studio. If the configuration is not already "Release", set it to
41
"Release". Type F7 to build. The METIS library will be in
42
<BINARY_DIR>\libmetis\Release and the executable programs will be in
43
<BINARY_DIR>\programs\Release. (<BINARY_DIR> will be build\windows if
44
you used the command line or whatever you choose if using the CMake
45
GUI.)
46
47