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 )