spike-diff/CMakeLists.txt

12 lines
323 B
CMake

cmake_minimum_required(VERSION 3.26)
project(spike-diff)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 17)
include(FindPkgConfig)
pkg_check_modules(riscv-riscv REQUIRED IMPORTED_TARGET riscv-riscv)
pkg_check_modules(riscv-fesvr REQUIRED IMPORTED_TARGET riscv-fesvr)
find_package(spdlog REQUIRED)
add_subdirectory(lib)