# src/ 子目录构建脚本：各子目录独立维护 CMakeLists.txt，并在此聚合链接

add_subdirectory(utils)
add_subdirectory(ast)
add_subdirectory(sem)
add_subdirectory(ir)
add_subdirectory(frontend)
add_subdirectory(irgen)
add_subdirectory(mir)

add_executable(compiler
  main.cpp
)
target_link_libraries(compiler PRIVATE
  frontend
  sem
  irgen
  mir
  utils
)
