diff options
author | saurabhb17 | 2020-02-26 16:04:40 +0530 |
---|---|---|
committer | saurabhb17 | 2020-02-26 16:04:40 +0530 |
commit | 039ac92480a09266146fc5b0c9ec67a32a2565ad (patch) | |
tree | 7b6cef031a580680690a0f32410db940f7e7d7d5 /new/toolchain-mingw64.cmake | |
parent | aa35045840b78d3f48212db45da59a2e5c69b223 (diff) | |
download | KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.tar.gz KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.tar.bz2 KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.zip |
Added secondary files
Diffstat (limited to 'new/toolchain-mingw64.cmake')
-rw-r--r-- | new/toolchain-mingw64.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/new/toolchain-mingw64.cmake b/new/toolchain-mingw64.cmake new file mode 100644 index 0000000..bf4a366 --- /dev/null +++ b/new/toolchain-mingw64.cmake @@ -0,0 +1,35 @@ + +# This is a CMake toolchain file so we can run Mingw64 to build a Windows64 binaries. +# http://vtk.org/Wiki/CMake_Cross_Compiling + +# usage +# cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain-mingw64.cmake ../ + + +set( CMAKE_SYSTEM_NAME Windows ) +set( CMAKE_SYSTEM_PROCESSOR x86_64 ) + +#-----<configuration>----------------------------------------------- + +# configure only the lines within this <configure> block, typically + +set( TC_PATH /usr/bin ) +set( CROSS_COMPILE x86_64-w64-mingw32- ) + +# specify the cross compiler +set( CMAKE_C_COMPILER ${TC_PATH}/${CROSS_COMPILE}gcc ) +set( CMAKE_CXX_COMPILER ${TC_PATH}/${CROSS_COMPILE}g++ ) +set( CMAKE_RC_COMPILER ${TC_PATH}/${CROSS_COMPILE}windres ) + +# where is the target environment +set( CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 ) + +#-----</configuration>----------------------------------------------- + +# search for programs in the build host directories +set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER ) + +# for libraries and headers in the target directories +set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) +set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) + |