# this one is important
SET(CMAKE_SYSTEM_NAME Windows)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
#SET(CMAKE_CXX_COMPILER CXX_REPLACE)
#SET(CMAKE_C_COMPILER   C_REPLACE)
SET(CMAKE_C_COMPILER   x86_64-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER   x86_64-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER /usr/bin/x86_64-w64-mingw32-windres)
# where is the target environment 
#SET(CMAKE_FIND_ROOT_PATH  PWD_REPLACE)
SET(CMAKE_FIND_ROOT_PATH  /home/pcuser/mingw64/)

SET(ZLIB_LIBRARY -lz)
SET(PNG_LIBRARY -lpng)


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