Commit 9af32422 authored by Ilya Prokhorov's avatar Ilya Prokhorov

Emscripten related changes

parent 4447aa73
......@@ -3,6 +3,13 @@ cmake_minimum_required(VERSION 3.5)
project (FlameSteelCommonTraits)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (EMSCRIPTEN)
set(CMAKE_CXX_FLAGS "-s USE_SDL=2 -s USE_SDL_TTF=2 -s USE_SDL_IMAGE=2 -s USE_LIBPNG=1 -s ASSERTIONS=1 -s SDL2_IMAGE_FORMATS='[\"png\"]' -s DISABLE_EXCEPTION_CATCHING=0 -O3 --no-heap-copy")
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src /usr/local/include/FlameSteelFramework)
file(GLOB_RECURSE SOURCE_FILES
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment