RVSCC/fw/sandbox/asm/CMakeLists.txt

19 lines
423 B
CMake
Raw Normal View History

2023-02-02 22:46:17 +00:00
cmake_minimum_required(VERSION 3.10)
project(sandbox_asm ASM)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/utils.cmake)
set(SOURCE_FILES main.s)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_compile_options(${PROJECT_NAME} PRIVATE
-march=rv32id
)
target_link_options(${PROJECT_NAME} PRIVATE
-T ${CMAKE_CURRENT_SOURCE_DIR}/../../linker-script.ld
)
rvscc_bin_to_verilog_mem_file(TARGET ${PROJECT_NAME})