Skip to content

xaliphostes/Emsc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Definition

Shows how to use emscripten with cmake for a simple or a big project.

MyLib is a static library which will generate a .lib (under Windows of course). Main will generate a .exe and is linked (statically) to MyLib. nmake install will install the exe and the dll in the bin directory, and the lib in the lib directory.

Generation and installation

  1. Generate the build directory
mkdir build
  1. Go inside the build directory

  2. Generate the makefiles

cmake -DCMAKE_TOOLCHAIN_FILE="%EMSCRIPTEN%/cmake/Modules/Platform/emscripten.cmake" -G "NMake Makefiles" ..
  1. Compile
nmake

About

Show how to use Emscripten

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published