From 80697f8f30cae4e8460fd2c7cda086cb7627e470 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 28 Apr 2020 16:24:40 +0200 Subject: [PATCH] Add toolchain files to cmake dir --- cmake/Toolchain-i686-w64-mingw32-shared.cmake | 9 +++++++++ cmake/Toolchain-x86_64-w64-mingw32-shared.cmake | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 cmake/Toolchain-i686-w64-mingw32-shared.cmake create mode 100644 cmake/Toolchain-x86_64-w64-mingw32-shared.cmake diff --git a/cmake/Toolchain-i686-w64-mingw32-shared.cmake b/cmake/Toolchain-i686-w64-mingw32-shared.cmake new file mode 100644 index 000000000..872dac225 --- /dev/null +++ b/cmake/Toolchain-i686-w64-mingw32-shared.cmake @@ -0,0 +1,9 @@ +SET(CMAKE_SYSTEM_NAME Windows) +SET(HOME "$ENV{HOME}") +SET(CMAKE_C_COMPILER "${HOME}/mxe-shared/usr/bin/i686-w64-mingw32.shared-gcc") +SET(CMAKE_CXX_COMPILER "${HOME}/mxe-shared/usr/bin/i686-w64-mingw32.shared-g++") +SET(CMAKE_RC_COMPILER "${HOME}/mxe-shared/usr/bin/i686-w64-mingw32.shared-windres") +SET(CMAKE_FIND_ROOT_PATH "${HOME}/mxe-shared/usr/i686-w64-mingw32.shared/") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/cmake/Toolchain-x86_64-w64-mingw32-shared.cmake b/cmake/Toolchain-x86_64-w64-mingw32-shared.cmake new file mode 100644 index 000000000..0f95e7c2b --- /dev/null +++ b/cmake/Toolchain-x86_64-w64-mingw32-shared.cmake @@ -0,0 +1,9 @@ +SET(CMAKE_SYSTEM_NAME Windows) +SET(HOME "$ENV{HOME}") +SET(CMAKE_C_COMPILER "${HOME}/mxe-shared/usr/bin/x86_64-w64-mingw32.shared-gcc") +SET(CMAKE_CXX_COMPILER "${HOME}/mxe-shared/usr/bin/x86_64-w64-mingw32.shared-g++") +SET(CMAKE_RC_COMPILER "${HOME}/mxe-shared/usr/bin/x86_64-w64-mingw32.shared-windres") +SET(CMAKE_FIND_ROOT_PATH "${HOME}/mxe-shared/usr/x86_64-w64-mingw32.shared/") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)