- 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 通过
19 lines
446 B
CMake
19 lines
446 B
CMake
# CMake最低版本
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
# 工程名、版本号、工程描述
|
|
project(Stator
|
|
VERSION 0.1
|
|
DESCRIPTION "子集 ST 编译为寄存器 VM,按扫描周期执行"
|
|
LANGUAGES C CXX)
|
|
|
|
include("${CMAKE_SOURCE_DIR}/cmake/Standards.cmake")
|
|
|
|
add_subdirectory(isa)
|
|
add_subdirectory(compiler)
|
|
add_subdirectory(vm)
|
|
add_subdirectory(executor)
|
|
|
|
# 自动化用例
|
|
enable_testing()
|
|
add_subdirectory(tests) |