From a54c42de41b5b41fc2fa1b3b318bd3d348e96c41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Schl=C3=BCter?= <jan.schluter@lis-lab.fr>
Date: Wed, 19 Jun 2019 10:10:34 +0200
Subject: [PATCH] Document build options for optimized and stripped binary

---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 1c53bd5..3a8f889 100644
--- a/README.md
+++ b/README.md
@@ -26,9 +26,9 @@ If cmake is available, create a build directory, compile, and install:
 ```
 mkdir build
 cd build
-cmake ..
+cmake .. -DCMAKE_BUILD_TYPE=Release
 make
-sudo make install
+sudo make install/strip
 ```
 This will install globally; pass `-DCMAKE_INSTALL_PREFIX=/some/directory` to
 the `cmake` call to install to `/some/directory` instead. It is also possible
@@ -55,7 +55,7 @@ Tools Command Prompt and navigate to the source directory. Run the following:
 mkdir build
 mkdir install
 cd build
-cmake .. -DLIBUSB_INCLUDE_DIR=<libusb_dir>/include -DLIBUSB_LIBRARY=<libusb_dir>/MS64/dll/libusb-1.0.lib -DCMAKE_INSTALL_PREFIX=../install
+cmake .. -DCMAKE_BUILD_TYPE=Release -DLIBUSB_INCLUDE_DIR=<libusb_dir>/include -DLIBUSB_LIBRARY=<libusb_dir>/MS64/dll/libusb-1.0.lib -DCMAKE_INSTALL_PREFIX=../install
 nmake
 nmake install
 ```
-- 
GitLab