README.md 1.44 KB
Newer Older
1
2
3
4
# Requirements
* C compiler. gcc 4.8 tested
* Git
* CMake. 2.8.12.2 tested.
Lefebvre, Jordan's avatar
Lefebvre, Jordan committed
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
# Getting Started
* You will need to save your ssh-key in [code.ornl.gov](https://code.ornl.gov/profile/keys).
* Clone rsm
`git clone git@code.ornl.gov:jap/rsm.git ~/rsm`
* Change directory into rsm `cd ~/rsm`
* Initialize git submodules
`git submodule init`
* Clone submodules
`gitsubmodule update`
* Create a build directory
`mkdir -p ~/build/rsm`
* Change into the build `cd ~/build/rsm`
* Create a configuration script in ~/build/. Lets call is ../configure.sh(linux), ..\configure.bat(windows)

```
#!/bin/bash
# Linux bash file example
rm -rf CMake*
cmake \
 -D OPENSSL_ROOT_DIR=${OPENSSL_INSTALL_PREFIX} \
 -D LibSSH_DIR=${LibSSH_INSTALL_PREFIX}/lib64/cmake/libssh \
 -D CMAKE_BUILD_TYPE:STRING=RELEASE \
 -D rsm_ENABLE_ALL_PACKAGES:BOOL=ON \
 -D rsm_ENABLE_TESTS:BOOL=ON \
 -G "Unix Makefiles" \
 ~/rsm
```
```
rem Windows MinGW bat file example
del /S /Q CMake*
cmake ^
 -D OPENSSL_ROOT_DIR=${OPENSSL_INSTALL_PREFIX} \
 -D LibSSH_DIR=${LibSSH_INSTALL_PREFIX}/lib64/cmake/libssh \
 -D CMAKE_BUILD_TYPE:STRING=RELEASE ^
 -D rsm_ENABLE_ALL_PACKAGES:BOOL=ON ^
 -D rsm_ENABLE_TESTS:BOOL=ON ^
 -G "MinGW Makefiles" ^
 ~/rsm
```

* Invoke configure script in the build directory.
`../configure.sh or ..\configure.bat`
  * I place the configure script in the build directory as opposed to the build/rsm directory because it allows me to delete the build/rsm
directory without removing my script.