-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate zj-common-scripts as a submodule (#8)
* tested * modularizes scripts * updates git workflow * updates workflow name
- Loading branch information
1 parent
d5f3c07
commit 1dee0cf
Showing
13 changed files
with
49 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "cmake/zj-cmake"] | ||
path = cmake/zj-cmake | ||
url = git@github.com:zongyaojin/zj-cmake.git | ||
[submodule "scripts/zj-common-scripts"] | ||
path = scripts/zj-common-scripts | ||
url = git@github.com:zongyaojin/zj-common-scripts.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
set -exo pipefail | ||
|
||
# Get this script's filename with absolute path | ||
script_file=$(realpath "$0") | ||
# Get this script's absolute path without the filename | ||
script_absolute_path=$(dirname "$script_file") | ||
|
||
# Path definitions | ||
build_path=$script_absolute_path/build | ||
zj_package_install_path=$script_absolute_path/install | ||
|
||
# Remove the build path for a fresh start | ||
rm -rf $build_path | ||
|
||
# Make directories | ||
mkdir -p $build_path | ||
|
||
# Go to the build path, build and install | ||
( | ||
cd $build_path | ||
cmake .. \ | ||
-D CMAKE_PREFIX_PATH=$zj_package_install_path \ | ||
-D CMAKE_BUILD_TYPE=Release | ||
make | ||
./client-project-example | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule zj-common-scripts
added at
ab57bb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -exo pipefail | ||
|
||
# Update and install system-level package managment dependencies | ||
sudo apt update -y | ||
sudo apt upgrade -y | ||
|
||
# Install package-specific dependencies | ||
sudo apt install -y libgtest-dev libspdlog-dev libeigen3-dev libboost-all-dev |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.