aboutsummaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-04-29 18:59:04 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-01 21:33:04 +0200
commit17f5d8f5023f496cb09b2800786af1a43aabf247 (patch)
tree1a5833eac3a10ad2a8b38f9a27dfd5c327a75be5 /INSTALL.md
parentddaf9295a99c25292654e29b9391eb9290ad7ad2 (diff)
downloadlibayatana-common-17f5d8f5023f496cb09b2800786af1a43aabf247.tar.gz
libayatana-common-17f5d8f5023f496cb09b2800786af1a43aabf247.tar.bz2
libayatana-common-17f5d8f5023f496cb09b2800786af1a43aabf247.zip
INSTALL.md: Add build/installation instructions
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md
new file mode 100644
index 0000000..19b6373
--- /dev/null
+++ b/INSTALL.md
@@ -0,0 +1,31 @@
+# Build and installation instructions
+
+## For end-users and packagers
+
+```
+mkdir build
+cd build
+cmake ..
+make
+sudo make install
+```
+## For testers - unit tests only
+
+```
+mkdir build
+cd build
+cmake .. -DENABLE_TESTS=ON
+make
+make test
+```
+## For testers - both unit tests and code coverage
+
+```
+mkdir build
+cd build
+cmake .. -DENABLE_COVERAGE=ON
+make
+make test
+make coverage
+```
+**The install prefix defaults to `/usr`, change it with `-DCMAKE_INSTALL_PREFIX=/some/path`**