- STCompiler 入口在 compiler/src/main.cpp,链 compiler+isa - host/ 改名 executor/,BytecodeExecutor 链 vm+isa 不链 compiler - compiler/vm 补 PUBLIC 链 isa;顶层加入 executor - CTest:版本冒烟 2 例 + isa_roundtrip(89 断言),3/3 通过
14 lines
336 B
CMake
14 lines
336 B
CMake
# CMake最低版本
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
# 工程名、版本号、工程描述
|
|
project(VM
|
|
VERSION 0.1
|
|
DESCRIPTION "寄存器虚拟机")
|
|
|
|
add_library(vm STATIC
|
|
./src/Machine.cpp)
|
|
|
|
target_include_directories(vm PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
target_link_libraries(vm PUBLIC isa)
|