forked from ecrc/stars-h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
52 lines (27 loc) · 931 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Installation requires **CMake** of version 3.2.3 at least. To build STARS-H,
please follow these instructions:
1. Get STARS-H from git repository
git clone git@github.com:ecrc/stars-h
or
git clone https://github.com/ecrc/stars-h
2. Go into STARS-H folder
cd stars-h
3. Get submodules
git submodule update --init
4. Create build directory and go there
mkdir build && cd build
5. Use CMake to get all the dependencies
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/install/
6. Build STARS-H
make -j
7. Run tests (optional)
make test
8. Build local documentation (optional)
make docs
9. Install STARS-H
make install
10. Add line
export PKG_CONFIG_PATH=/path/to/install/lib/pkgconfig:$PKG_CONFIG_PATH
to your .bashrc file.
Now you can use pkg-config executable to collect compiler and linker flags for
STARS-H.