mingw-toolchain.cmake 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # __ __ _
  2. # ___\ \/ /_ __ __ _| |_
  3. # / _ \\ /| '_ \ / _` | __|
  4. # | __// \| |_) | (_| | |_
  5. # \___/_/\_\ .__/ \__,_|\__|
  6. # |_| XML parser
  7. #
  8. # Copyright (c) 2019 Expat development team
  9. # Licensed under the MIT license:
  10. #
  11. # Permission is hereby granted, free of charge, to any person obtaining
  12. # a copy of this software and associated documentation files (the
  13. # "Software"), to deal in the Software without restriction, including
  14. # without limitation the rights to use, copy, modify, merge, publish,
  15. # distribute, sublicense, and/or sell copies of the Software, and to permit
  16. # persons to whom the Software is furnished to do so, subject to the
  17. # following conditions:
  18. #
  19. # The above copyright notice and this permission notice shall be included
  20. # in all copies or substantial portions of the Software.
  21. #
  22. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  23. # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  24. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  25. # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  26. # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  27. # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  28. # USE OR OTHER DEALINGS IN THE SOFTWARE.
  29. set(CMAKE_SYSTEM_NAME Windows)
  30. set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
  31. set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
  32. set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
  33. set(WIN32 ON)
  34. set(MINGW ON)