You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
445 B
17 lines
445 B
cmake_minimum_required(VERSION 3.21)
|
|
|
|
add_subdirectory(utils)
|
|
add_subdirectory(parser)
|
|
add_subdirectory(ir)
|
|
add_subdirectory(opt)
|
|
add_subdirectory(riscv)
|
|
|
|
set(SOURCE_FILES main.cpp)
|
|
|
|
add_executable(carrotcompiler ${SOURCE_FILES})
|
|
set_target_properties(carrotcompiler PROPERTIES OUTPUT_NAME "compiler")
|
|
|
|
target_include_directories(carrotcompiler PRIVATE utils parser ir opt riscv)
|
|
|
|
target_link_libraries(carrotcompiler utils parser ir opt riscv)
|