Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Commit

Permalink
Update install.md and add installation instructions for gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
pinnecke committed Aug 2, 2019
1 parent 362a8d8 commit 72c7000
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
5 changes: 4 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
libcarbon uses [CMake](https://cmake.org) as build system. CMake 3.9.6 or higher is required. For testing, [Google Test Framework](https://github.com/google/googletest) is required.
libcarbon uses [CMake](https://cmake.org) as build system. CMake 3.9.6 or higher is required.
For testing, [Google Test Framework](https://github.com/google/googletest) is required. You will find
installation instructions in [misc/INSTALL_GTEST.md](misc/INSTALL_GTEST.md). Libcarbon is built for the [Clang C Compiler](https://clang.llvm.org).
To install this compiler on Linux, use `$ sudo apt install clang` if not yet present.

The basic usage is
```
Expand Down
21 changes: 21 additions & 0 deletions misc/INSTALL_GTEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Taken from [https://www.eriksmistad.no/getting-started-with-google-test-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
sudo mkdir /usr/local/lib/gtest
sudo ln -s /usr/lib/libgtest.a /usr/local/lib/gtest/libgtest.a
sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/gtest/libgtest_main.a
```

0 comments on commit 72c7000

Please sign in to comment.