forked from moseslv/baruch-mfe-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
64 lines (44 loc) · 1.63 KB
/
README
File metadata and controls
64 lines (44 loc) · 1.63 KB
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
63
This is the quant lab for Baruch MFE program.
Quick setup — if you've done this kind of thing before
or https://github.com/ShengQuanZhou/baruch-mfe-lab.git
We recommend every repository include a README, LICENSE, and .gitignore.
…or create a new repository on the command line
echo "# baruch-mfe-lab" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/ShengQuanZhou/baruch-mfe-lab.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/ShengQuanZhou/baruch-mfe-lab.git
git push -u origin master
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
To restore to the status before the last commit:
git reset --hard HEAD
To remove a file from the last commit:
git rm --cached path/to/your/file
or git rm -r --cached path/to/your/directory
then git commit.
To view the committed files:
git diff HEAD origin/master
Getting started with Google Test (GTest) on Ubuntu:
https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
sudo apt-get install libgtest-dev
sudo apt-get install cmake # install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp *.a /usr/lib
cmake CMakeLists.txt
make
./runTests
Out-of-Source build:
https://www.cs.swarthmore.edu/~adanner/tips/cmake.php
cd unit_test/
mkdir build
cd build/
cmake ..
Remember to be in your build directory and point
cmake only to the directory containing the
top-level CMakeLists.txt file, not the file itself.