Advertisement
Guest User

Untitled

a guest
Mar 7th, 2015
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.35 KB | None | 0 0
  1. # The name of the target operating system
  2. SET(CMAKE_SYSTEM_NAME Windows)
  3.  
  4. # Which compilers to use for C and C++
  5. SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
  6. SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
  7.  
  8. # Here is the target environment located
  9. SET(CMAKE_FIND_ROOT_PATH "/usr/i686-w64-mingw32")
  10.  
  11. # Adjust the default behaviour of the FIND_XXX() commands:
  12. # Search headers and libraries in the target environment, search
  13. # programs in the host environment
  14. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  15. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  16. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  17.  
  18. # Set executable name
  19. set(TOOLCHAIN_EXECUTABLE_NAME "win32")
  20.  
  21. # Set compiler flags
  22. set(TOOLCHAIN_CXX_FLAGS "-DSFML_STATIC -static-libgcc -static-libstdc++ \
  23.                         -lsfml-system-s -lsfml-window-s -lsfml-graphics-s \
  24.                         -lboost_serialization-mt \
  25.                         -std=c++11 -pedantic -pedantic-errors -Wall -Wextra -Werror -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 \
  26.                         -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow \
  27.                         -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wzero-as-null-pointer-constant -Wuseless-cast")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement