spike-diff/lib/CMakeLists.txt
xinyangli c0de3e619e
All checks were successful
Build packages / build-packages (default) (push) Successful in 8m34s
ci: fix build error
2024-08-15 10:08:28 +08:00

11 lines
358 B
CMake

add_library(spike-diff SHARED spike-diff.cpp)
target_link_libraries(spike-diff
PRIVATE
PkgConfig::riscv-riscv PkgConfig::riscv-fesvr
spdlog::spdlog)
set_property(TARGET PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_options(spike-diff PRIVATE -Wl,-E)
install( TARGETS spike-diff )