删除不必要文件,增加cmakelist
This commit is contained in:
33
CMakeLists.txt
Normal file
33
CMakeLists.txt
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
cmake_minimum_required(VERSION 4.0)
|
||||||
|
project(Compiler)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
|
||||||
|
include_directories(.)
|
||||||
|
|
||||||
|
add_executable(Compiler
|
||||||
|
AssemblyGenerator.cpp
|
||||||
|
AssemblyGenerator.h
|
||||||
|
ast.cpp
|
||||||
|
ast.h
|
||||||
|
InstructionEncoder.cpp
|
||||||
|
InstructionEncoder.h
|
||||||
|
interpreter.cpp
|
||||||
|
interpreter.h
|
||||||
|
ir.cpp
|
||||||
|
ir.h
|
||||||
|
lex.yy.cpp
|
||||||
|
main.cpp
|
||||||
|
mini_c.tab.cpp
|
||||||
|
mini_c.tab.hpp
|
||||||
|
ObjectFileGenerator.cpp
|
||||||
|
ObjectFileGenerator.h
|
||||||
|
PrettyPrinter.cpp
|
||||||
|
PrettyPrinter.h
|
||||||
|
semantic.cpp
|
||||||
|
semantic.h
|
||||||
|
stack.hh
|
||||||
|
symbol.cpp
|
||||||
|
symbol.h
|
||||||
|
type.cpp
|
||||||
|
type.h)
|
||||||
Reference in New Issue
Block a user