diff --git a/README.md b/README.md index 1c53bd582905e52b2fbe5242b1182c025434279d..3a8f889681764a92e052468607cee5610f289dd8 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 ```