radio/lorgar/lib/em/CMakeLists.txt

13 lines
320 B
CMake
Raw Permalink Normal View History

cmake_minimum_required(VERSION 2.8.12)
execute_process(COMMAND
emcc --bind
${CMAKE_CURRENT_SOURCE_DIR}/libmad.bc
${CMAKE_CURRENT_SOURCE_DIR}/decoder.cpp
-o ${CMAKE_CURRENT_BINARY_DIR}/wrapper.js
-s FILESYSTEM=0
-s ENVIRONMENT=web
-O3
--llvm-lto 1
)