Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

HowToBuild

方程 edited this page Apr 24, 2021 · 4 revisions

如何构建

项目依赖的工具

  • Antlr4 = 4.9.1
  • Antlr4CppRuntime = 4.9.1
  • llvm = 11.1.0
  • cmake >= 3.0.0
  • jdk
  • git

构建

  1. clone本仓库
git clone git@github.com:Yoorkin/classicBasic.git
  1. 定位到classicBasic,调用cmake脚本生成antlr代码:
cmake -P cmake/antlrCppGen.cmake 
  1. 构建
cmake -B"build" .
cd build
make

单元测试

构建完项目后在build目录下执行ctest

详细见如何进行单元测试

Clone this wiki locally