-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update]版本号3.0.0,ldrobotsensor SDK3.0 framework import success.
- Loading branch information
1 parent
0a70181
commit 97d18e6
Showing
19 changed files
with
845 additions
and
439 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
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,17 +1,45 @@ | ||
#!/bin/bash | ||
#Author: David Hu | ||
#Date: 2022-05 | ||
#Date: 2022-09 | ||
|
||
# Exit on error | ||
set -e | ||
set -x | ||
|
||
BUILD_MODE_DEBUG=1 | ||
BUILD_MODE_RELEASE=0 | ||
OP_YES=1 | ||
|
||
echo "Start cmake build" | ||
read -p "Please select build mode [Debug(1)/Release(0)]:" BUILD_MODE | ||
read -p "Is install lib and include files on the workspace, please input [yes(1)/no[0]]:" IS_INSTALL | ||
|
||
if [ ! -e "./build" ];then | ||
mkdir build | ||
echo "create ./build/" | ||
fi | ||
|
||
echo "start cmake build" | ||
cd ./build | ||
cmake .. | ||
make | ||
|
||
if [ ${BUILD_MODE} == ${BUILD_MODE_DEBUG} ];then | ||
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install .. | ||
elif [ ${BUILD_MODE} == ${BUILD_MODE_RELEASE} ];then | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install .. | ||
else | ||
echo "build mode input error" | ||
exit 0 | ||
fi | ||
|
||
make | ||
|
||
if [ ${IS_INSTALL} == ${OP_YES} ] | ||
then | ||
if [ ! -e "../install" ] | ||
then | ||
mkdir ../install | ||
echo "create ../install/" | ||
fi | ||
make install | ||
echo "build and install finished." | ||
else | ||
echo "build finished." | ||
fi |
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,14 @@ | ||
#!/bin/bash | ||
#Author: David Hu | ||
#Date: 2022-09 | ||
if [ -e "./build" ];then | ||
rm -rf build/ | ||
echo "del ./build/" | ||
fi | ||
|
||
if [ -e "./install" ];then | ||
rm -rf install/ | ||
echo "del ./install/" | ||
fi | ||
|
||
echo "del is ok....." |
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
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.
Oops, something went wrong.