Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The name of the target operating system
- SET(CMAKE_SYSTEM_NAME Windows)
- # Which compilers to use for C and C++
- SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
- SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
- # Here is the target environment located
- SET(CMAKE_FIND_ROOT_PATH "/usr/i686-w64-mingw32")
- # Adjust the default behaviour of the FIND_XXX() commands:
- # Search headers and libraries in the target environment, search
- # programs in the host environment
- set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
- set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
- # Set executable name
- set(TOOLCHAIN_EXECUTABLE_NAME "win32")
- # Set compiler flags
- set(TOOLCHAIN_CXX_FLAGS "-DSFML_STATIC -static-libgcc -static-libstdc++ \
- -lsfml-system-s -lsfml-window-s -lsfml-graphics-s \
- -lboost_serialization-mt \
- -std=c++11 -pedantic -pedantic-errors -Wall -Wextra -Werror -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 \
- -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow \
- -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