Skip to content

Commit f1b66cd

Browse files
committed
Add script to install Carna development version
1 parent 40fccc3 commit f1b66cd

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ endmacro()
4040
############################################
4141

4242
list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/misc/CMake-Modules )
43+
list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/.carna-dev )
4344

4445
############################################
4546
# Define default paths for the installation
@@ -155,4 +156,4 @@ install( FILES
155156

156157
if( BUILD_TEST )
157158
add_subdirectory( test )
158-
endif()
159+
endif()

install_carna_dev.bash

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
if [ -z "$CARNA_SRC_PREFIX" ]; then
5+
echo "CARNA_SRC_PREFIX is not set."
6+
exit 1
7+
fi
8+
export ROOT=$(dirname "$0")
9+
export CARNA_INSTALL_PREFIX="$ROOT/.carna-dev"
10+
11+
# Build development version of Carna
12+
cd "$CARNA_SRC_PREFIX"
13+
export BUILD=only_release
14+
export CARNA_NO_INSTALL=1
15+
export CMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=$CARNA_INSTALL_PREFIX $CMAKE_ARGS"
16+
export CMAKE_ARGS="-DINSTALL_CMAKE_DIR=$CARNA_INSTALL_PREFIX $CMAKE_ARGS"
17+
bash linux_build-egl.bash
18+
19+
cd build/make_release
20+
make install

0 commit comments

Comments
 (0)