2017-11-21 21:31:08 +01:00
|
|
|
set(SOURCES
|
2018-02-13 14:13:14 +01:00
|
|
|
vlnv.cpp
|
2017-12-06 12:37:24 +01:00
|
|
|
card.cpp
|
2018-02-13 14:13:14 +01:00
|
|
|
ip.cpp
|
|
|
|
ip_node.cpp
|
2017-11-21 21:31:08 +01:00
|
|
|
|
2018-02-13 14:13:14 +01:00
|
|
|
ips/timer.cpp
|
|
|
|
ips/switch.cpp
|
|
|
|
ips/fifo.cpp
|
|
|
|
ips/intc.cpp
|
|
|
|
ips/pcie.cpp
|
|
|
|
|
2017-11-21 21:31:08 +01:00
|
|
|
kernel/kernel.c
|
|
|
|
kernel/pci.c
|
2018-03-26 15:39:26 +02:00
|
|
|
kernel/vfio.cpp
|
2017-11-21 21:31:08 +01:00
|
|
|
|
|
|
|
utils.c
|
|
|
|
list.c
|
|
|
|
log.c
|
|
|
|
log_config.c
|
|
|
|
log_helper.c
|
2018-02-13 14:13:14 +01:00
|
|
|
|
|
|
|
plugin.cpp
|
|
|
|
utils.cpp
|
|
|
|
memory_manager.cpp
|
2018-03-26 15:48:57 +02:00
|
|
|
memory.cpp
|
2017-11-21 21:31:08 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
include(FindPkgConfig)
|
|
|
|
|
|
|
|
pkg_check_modules(JANSSON jansson)
|
|
|
|
pkg_check_modules(XIL libxil)
|
|
|
|
|
|
|
|
find_package(Threads)
|
|
|
|
|
2017-11-22 19:36:03 +01:00
|
|
|
add_library(villas-fpga SHARED ${SOURCES})
|
2017-11-21 21:31:08 +01:00
|
|
|
|
|
|
|
target_compile_definitions(villas-fpga PRIVATE
|
|
|
|
BUILDID=\"abc\"
|
|
|
|
_GNU_SOURCE
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(villas-fpga PUBLIC
|
|
|
|
../include/villas
|
|
|
|
${XIL_INCLUDE_DIRS}
|
|
|
|
${JANSSON_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(villas-fpga PUBLIC
|
|
|
|
${XIL_LIBRARIES}
|
|
|
|
${JANSSON_LIBRARIES}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
${CMAKE_DL_LIBS}
|
|
|
|
m
|
|
|
|
)
|