Skip to content
Snippets Groups Projects
Commit a54c42de authored by Jan Schlüter's avatar Jan Schlüter
Browse files

Document build options for optimized and stripped binary

parent b5dee4eb
Branches
No related tags found
2 merge requests!2HighBlueParser dev branch merged to empty main branch,!1High blue rec
...@@ -26,9 +26,9 @@ If cmake is available, create a build directory, compile, and install: ...@@ -26,9 +26,9 @@ If cmake is available, create a build directory, compile, and install:
``` ```
mkdir build mkdir build
cd build cd build
cmake .. cmake .. -DCMAKE_BUILD_TYPE=Release
make make
sudo make install sudo make install/strip
``` ```
This will install globally; pass `-DCMAKE_INSTALL_PREFIX=/some/directory` to This will install globally; pass `-DCMAKE_INSTALL_PREFIX=/some/directory` to
the `cmake` call to install to `/some/directory` instead. It is also possible 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: ...@@ -55,7 +55,7 @@ Tools Command Prompt and navigate to the source directory. Run the following:
mkdir build mkdir build
mkdir install mkdir install
cd build 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
nmake install nmake install
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment