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.
16 lines
398 B
16 lines
398 B
cmake_minimum_required(VERSION 3.16)
|
|
|
|
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(compiler PRIVATE parser ir opt riscv)
|
|
|
|
target_link_libraries(compiler parser ir opt riscv)
|