34 lines
673 B
CMake
34 lines
673 B
CMake
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)
|