1 Star 0 Fork 0

Zarror/SLC_SysY_Language_Compiler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
wxz 提交于 2021-08-05 12:35 . 调整
cmake_minimum_required(VERSION 3.10.2)
if(CMAKE_HOST_WIN32)
set(WINDOWS 1)
elseif(CMAKE_HOST_APPLE)
set(MACOS 1)
elseif(CMAKE_HOST_UNIX)
set(LINUX 1)
endif()
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build)
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
if(WINDOWS)
include_directories(src/win_dep)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/build)
endif()
include_directories(src/ast)
include_directories(src/front)
# include_directories(src/semantic)
include_directories(src/ir)
include_directories(src/codegen)
add_subdirectory(src/ast)
add_subdirectory(src/front)
# add_subdirectory(src/semantic)
add_subdirectory(src/ir)
add_subdirectory(src/codegen)
add_executable(compiler src/main.cpp)
target_link_libraries(
compiler
Front
Ast
Ir
CodeGen
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zarror-wang/slc_-sys-y_-language_-compiler.git
[email protected]:zarror-wang/slc_-sys-y_-language_-compiler.git
zarror-wang
slc_-sys-y_-language_-compiler
SLC_SysY_Language_Compiler
master

搜索帮助