# this one is important
SET(CMAKE_SYSTEM_NAME Windows)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
SET(CS "x86_64-w64-mingw32")
# specify the cross compiler
SET(CMAKE_C_COMPILER   ${CS}-${CROSS_C_COMPILER})
SET(CMAKE_CXX_COMPILER ${CS}-${CROSS_CXX_COMPILER})
SET(CMAKE_LINKER ${CS}-ld)
SET(CMAKE_AR ${CS}-ar)

# where is the target environment 
SET(CMAKE_FIND_ROOT_PATH  /mingw/)

# 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)

