cmake_windows_mingw.sh 457 B

12345678910111213141516171819
  1. #!/bin/sh
  2. if [ -z $1 ]
  3. then
  4. BUILD_TYPE=Debug
  5. else
  6. BUILD_TYPE=$1
  7. shift
  8. fi
  9. BUILD_DIR=MinGW_$BUILD_TYPE
  10. echo Usage: ./cmake_windows_mingw.sh [Configuration]
  11. echo "Possible configurations: Debug (default), Release, Distribution"
  12. echo Generating Makefile for build type \"$BUILD_TYPE\" in folder \"$BUILD_DIR\"
  13. cmake -S . -B $BUILD_DIR -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=$BUILD_TYPE "${@}"
  14. echo Compile by running \"cmake --build $BUILD_DIR -j 8\"