From 00c306d5c441e60e7dfd2516e05e4e433977ecee Mon Sep 17 00:00:00 2001 From: Samuel O'Brien Date: Fri, 24 Jul 2020 08:35:35 -0500 Subject: sim: Integrate simulator into UHD This commit adds a device::register_device which allows uhd to start up a simulator when uhd is called with the arguments type=sim. Creating the device object creates a subprocess using pybind and an embedded interpreter, and destroying the object cleans up those subprocesses. Signed-off-by: Samuel O'Brien --- host/lib/usrp/mpmd/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/lib/usrp/mpmd/CMakeLists.txt') diff --git a/host/lib/usrp/mpmd/CMakeLists.txt b/host/lib/usrp/mpmd/CMakeLists.txt index 6604ba5a8..d7f7f93a2 100644 --- a/host/lib/usrp/mpmd/CMakeLists.txt +++ b/host/lib/usrp/mpmd/CMakeLists.txt @@ -18,6 +18,12 @@ if(ENABLE_MPMD) ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_link_if_ctrl_udp.cpp ) + if(ENABLE_SIM) + LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/sim_find.cpp + ) + endif(ENABLE_SIM) + if(ENABLE_DPDK) include_directories(${DPDK_INCLUDE_DIRS}) set_property( -- cgit v1.2.3