Skip to content

Instantly share code, notes, and snippets.

View 3d4m-volodymyr's full-sized avatar
🏢

Volodymyr B. 3d4m-volodymyr

🏢
View GitHub Profile
@3d4m-volodymyr
3d4m-volodymyr / CMakeLists.txt
Created September 28, 2019 11:57 — forked from WesThorburn/1.Instructions.md
Linux: Using emscripten with CMake to compile C++ to WebAssembly and or JavaScript
project (client)
cmake_minimum_required(VERSION 3.5.1)
option(JS_ONLY "Compiles to native JS (No WASM)" OFF)
add_definitions(-std=c++11 -O3)
include_directories(include)
file(GLOB SOURCES src/*.cpp)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/public")