serenity/Userland/Libraries/LibWasm/CMakeLists.txt
Andrew Kaster 733a318709 Meta+CMake: Extract Wasm spec tests into the binary directory
Clean up the Wasm spec tests CMake rules to extract and compile the wat
files into wasm files in the LibWasm binary directory instead of its
source directory. Also make the rules more robust to missing host tools,
and use more CMake install rules for the test files rather than relying
on build-root-filesystem.sh. Add some FIXMEs for later, we really
shouldn't be doing installation of test files into /home/anon at the
build-root-filesystem stage in $CURRENT_YEAR. Tests go in /usr/Tests
2022-12-14 20:29:43 +03:30

15 lines
428 B
CMake

set(SOURCES
AbstractMachine/AbstractMachine.cpp
AbstractMachine/BytecodeInterpreter.cpp
AbstractMachine/Configuration.cpp
AbstractMachine/Validator.cpp
Parser/Parser.cpp
Printer/Printer.cpp
)
serenity_lib(LibWasm wasm)
target_link_libraries(LibWasm PRIVATE LibCore)
# FIXME: Install these into usr/Tests/LibWasm
include(wasm_spec_tests)
install(DIRECTORY Tests/ DESTINATION home/anon/Tests/wasm-tests)