mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-09-23 02:35:35 +00:00
Minor changes to build scripts.
This commit is contained in:
+5
-2
@@ -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
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"cmake.configureOnEdit": true,
|
||||
"cmake.configureOnOpen": true,
|
||||
|
||||
"cmake.buildDirectory": "${workspaceFolder}/build",
|
||||
"cmake.installPrefix": "${workspaceFolder}/debug",
|
||||
|
||||
"cmake.debugConfig": {
|
||||
|
||||
},
|
||||
|
||||
"cmake.configureSettings": {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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,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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user