-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunExample.sh.in
More file actions
20 lines (16 loc) · 1.01 KB
/
RunExample.sh.in
File metadata and controls
20 lines (16 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# ------------------------------------------------------------------------------------------------ #
# #
# _) | | _) This code may be used and modified under the terms #
# | | | | | (_-< | _ \ \ of the MIT license. See the LICENSE file for details. #
# _| _| _| \_,_| ___/ _| \___/ _| _| Copyright (c) 2018-2019 Simon Schneegans #
# #
# ------------------------------------------------------------------------------------------------ #
# set paths for Vulkan
export LD_LIBRARY_PATH=../@CMAKE_INSTALL_LIBDIR@:$LD_LIBRARY_PATH
export VK_LAYER_PATH=../@CMAKE_INSTALL_DATAROOTDIR@/vulkan/explicit_layer.d
# get the location of this script
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $SCRIPT_DIR
# gdb --args ./@EXAMPLE@ $@
./@EXAMPLE@ "$@"