-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
63 lines (42 loc) · 1.76 KB
/
README.txt
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
52
53
54
55
56
57
58
59
60
61
62
Building IPS with CMake using shell script
============================================
In this example, we will "build out of place". The building also works
if you stay in the top level directory.
From the top level directory::
mkdir build
cd build
../bin/ipsconfig.sh
This creates a config.sh which is meant to easily edit your cmake
configuration. Assuming that you just want to use the default::
./config.sh
After configuring, to build IPS and run the tests::
make
make test
It is highly recommended to install the IPS in a location separate from
the build tree using the command
make install
If you have sphinx-build in your path and cmake detected it, then the
following command will build the documentation::
make docs
The documentation may be found at docs/html/index.html. The
tests are located in the tests subdirectory.
Things to check after building
============================================
The share directory contains platform.conf and component-generic.conf.
You can edit these if the values are not correct. The values are
generally meant to be passed in as discussed in the next section, but it
can be easier to just edit these files.
Advanced building with CMake
============================================
The config.sh is meant to be easily editted to create more complicated
configuration commands. For example::
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local/ips \
-DPHYS_BIN_ROOT=/usr/local/swimroot/bin \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
-DCMAKE_INSTALL_ALWAYS:BOOL=TRUE \
-DCMAKE_BUILD_TYPE:STRING=RELEASE \
-DSUPRA_SEARCH_PATH='/usr/local;/contrb' \
$PWD/..
SUPRA_SEARCH_PATH is a list of directories to search for where to find
things like sphinx which is used to build the documentation.