Fix test results for compile scripts

parent a3d31e01
#!/usr/bin/env bash
set -e
export CMAKE_PREFIX_PATH=$AMENT_PREFIX_PATH:$CMAKE_PREFIX_PATH
# add *_HOME to PATH temporarily
if [ -n "$cmake_HOME" ]
......@@ -42,9 +44,8 @@ else
exit 1
fi
# cmake
curDir=`dirname "$0"`
cmake -B"$curDir"/build/ -H"$curDir/src" "$@"
# make
make -j4 -C "$curDir/build"
\ No newline at end of file
# configure cmake
cmake -B"$curDir/build/" -H"$curDir/src/" -DCMAKE_INSTALL_PREFIX="$curDir/install" "$@"
# build
cmake --build "$curDir/build/" --target install --config Release
#!/usr/bin/env bash
set -e
export CMAKE_PREFIX_PATH=$AMENT_PREFIX_PATH:$CMAKE_PREFIX_PATH
# add *_HOME to PATH temporarily
if [ -n "$cmake_HOME" ]
......@@ -42,9 +44,8 @@ else
exit 1
fi
# cmake
curDir=`dirname "$0"`
cmake -B"$curDir"/build/ -H"$curDir/src" "$@"
# make
make -j4 -C "$curDir/build"
\ No newline at end of file
# configure cmake
cmake -B"$curDir/build/" -H"$curDir/src/" -DCMAKE_INSTALL_PREFIX="$curDir/install" "$@"
# build
cmake --build "$curDir/build/" --target install --config Release
@ECHO Off
@echo off
:: add *_HOME to PATH temporarily
IF NOT [%cmake_HOME%] == [] (
set PATH="%cmake_HOME%;%PATH%"
......@@ -39,10 +41,8 @@ IF NOT %ERRORLEVEL% EQU 0 (
exit /B 1
)
:: cmake
cmake -B./build/ -G "Visual Studio 15 2017 Win64" %* ./src
:: msbuild
cd .\build
msbuild /m /t:build /p:Configuration=Release ALL_BUILD.vcxproj
cd ..
\ No newline at end of file
SET curDir=%~dp0
:: configure cmake
cmake -B%curDir%/build/ -H%curDir%/src/ -DCMAKE_INSTALL_PREFIX=%curDir%/install -G "Visual Studio 15 2017 Win64" %*
:: build
cmake --build %curDir%/build/ --target install --config Release
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment