diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..922cf95 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +project (client) +cmake_minimum_required(VERSION 3.5.1) + +add_definitions(-std=c++11 -O3 -pthread) +include_directories(include) +include_directories(eigen-3.4.0) + +file(GLOB SOURCES src/main.cpp) + +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/public") +add_executable(wasm-main ${SOURCES}) +set_target_properties(wasm-main PROPERTIES LINK_FLAGS "-pthread -s INITIAL_MEMORY=52428800 -s PTHREAD_POOL_SIZE=navigator.hardwareConcurrency -s EXPORTED_FUNCTIONS=['_main','_malloc','_free'] -s EXPORTED_RUNTIME_METHODS=['ccall','cwrap'] -s EXPORT_ALL=1 -lembind") diff --git a/README.md b/README.md index ef12b6b..76fe197 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # tjsm -https://arxiv.org/abs/2310.03227 \ No newline at end of file +https://arxiv.org/abs/2310.03227 + +By gtrrebel, shikhin, and zgrep. Watch live [here](https://shikhin.in/tjsm/tjsm.html).