Minor changes to build scripts.

This commit is contained in:
Julian Frohmüller
2022-10-16 14:10:29 +02:00
parent a17f0578d4
commit c5539b31a5
7 changed files with 39 additions and 19 deletions
+5 -2
View File
@@ -11,7 +11,10 @@ compile_commands.json
CTestTestfile.cmake
_deps
# Ignore build directory and build binaries
# Ignore build directories
build
debug
release
release
# Ignore IDE artifacts
# .vscode
+15
View File
@@ -0,0 +1,15 @@
{
"cmake.configureOnEdit": true,
"cmake.configureOnOpen": true,
"cmake.buildDirectory": "${workspaceFolder}/build",
"cmake.installPrefix": "${workspaceFolder}/debug",
"cmake.debugConfig": {
},
"cmake.configureSettings": {
}
}
+2 -8
View File
@@ -1,14 +1,8 @@
mkdir build
# Build for Debug and install locally
# cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=./debug
# Build for Release and install locally
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./release
# Build for Release and install to /usr/local/
# cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=./debug
cd build
make
make install
make install
+1 -1
View File
@@ -1,3 +1,3 @@
rm -r build
rm -r debug
rm -r release
rm -r release
+4 -4
View File
@@ -1,4 +1,4 @@
apt-get install libusb-0.1 -y
apt-get install make -y
apt-get install gcc -y
sudo apt-get install libusb-0.1 -y
sudo apt-get install make -y
sudo apt-get install cmake -y
sudo apt-get install gcc -y
+4 -4
View File
@@ -1,4 +1,4 @@
yum install libusb-0.1 -y
yum install make -y
yum install gcc -y
sudo yum install libusb-0.1 -y
sudo yum install make -y
sudo yum install cmake -y
sudo yum install gcc -y
+8
View File
@@ -0,0 +1,8 @@
mkdir build
# Build for Release and install to /usr/local/
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/
cd build
make
make install