CMakeLists.txt: use GNUInstallDirs
[libam7xxx.git] / cmake_modules / mingw_cross_toolchain.cmake
1 SET(CMAKE_SYSTEM_NAME Windows)
2 include(CMakeForceCompiler)
3 IF("${GNU_HOST}" STREQUAL "")
4     SET(GNU_HOST i586-mingw32msvc)
5 ENDIF()
6
7 SET(CMAKE_C_COMPILER ${GNU_HOST}-gcc)
8
9 # CMake doesn't automatically look for prefixed 'windres', do it manually:
10 SET(CMAKE_RC_COMPILER ${GNU_HOST}-windres)
11
12 # The following is important to let cmake set some variables such as
13 # CMAKE_FIND_LIBRARY_PREFIXES and CMAKE_FIND_LIBRARY_SUFFIXES from
14 # Platform/Windows-GNU.cmake
15 SET(MINGW True)