mirror of
https://github.com/italicsjenga/juce-cmake-toolchains.git
synced 2024-12-23 15:11:31 +11:00
11 lines
335 B
Bash
Executable file
11 lines
335 B
Bash
Executable file
if [ -z $1 ]; then
|
|
echo "No toolchain specified!"
|
|
exit
|
|
fi
|
|
if [ ! -f toolchain-$1.cmake ]; then
|
|
echo "file doesntnt exist!"
|
|
exit
|
|
fi
|
|
cd source
|
|
cmake -B build-install-$1 -DCMAKE_INSTALL_PREFIX=../$1 -DCMAKE_TOOLCHAIN_FILE=../toolchain-$1.cmake && echo "--- Finished configuring ---" && cmake --build build-install-$1 --target install
|