Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
325 B
2
Indexable
Never
cmake_minimum_required(VERSION 3.2)
project(vpi)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -I/home/r2com/eda/install/ghdl/include/ghdl")
add_library(vpi.vpi SHARED ../test.c)
find_library(ghdl /home/r2com/eda/install/ghdl/lib)
include_directories(/home/r2com/eda/install/ghdl/include/ghdl)
target_link_libraries(vpi.vpi ghdl)