Add build system.

This commit is contained in:
shikhin 2023-12-05 15:03:25 -05:00
parent 417b46e1ac
commit e1b9cdd179
2 changed files with 15 additions and 1 deletions

12
CMakeLists.txt Normal file
View File

@ -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")

View File

@ -1,3 +1,5 @@
# tjsm
https://arxiv.org/abs/2310.03227
https://arxiv.org/abs/2310.03227
By gtrrebel, shikhin, and zgrep. Watch live [here](https://shikhin.in/tjsm/tjsm.html).