List scripts in project file

Maybe add install target for scripts later
This commit is contained in:
Martchus 2016-09-11 20:30:45 +02:00
parent 79caa5f3ea
commit 5f48579cd3
2 changed files with 11 additions and 2 deletions

View File

@ -84,9 +84,13 @@ set(CMAKE_TEMPLATE_FILES
cmake/templates/doxygen.in
cmake/templates/bash-completion.sh.in
)
set(SCRIPT_FILES)
if(MINGW)
list(APPEND CMAKE_TEMPLATE_FILES
cmake/templates/windows.rc.in
cmake/templates/windows.rc.in
)
list(APPEND SCRIPT_FILES
scripts/wine.sh
)
endif()

View File

@ -1,6 +1,11 @@
#!/bin/bash
if [[ $# -lt 1 ]]; then
echo "Starts the specified executable with wine."
echo "Usage: $0 executable [additional_dll_path(s)]"
exit -1
fi
for arg in "${@:2}"; do
WINEPATH="${arg};${WINEPATH}"
done
export WINEPATH;
wine "${@:1:1}"
echo wine "${@:1:1}"