From 13b45a08c90912e8baa33b618b152cf41293bb9d Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Tue, 17 Apr 2018 13:48:29 -0700 Subject: mpm: add device-specific Boost.Python bindings Separating Boost.Python bindings into device-specific files. N3XX code now lives in n3xx/pyusrp_periphs. Only one src file should be added for pyusrp_periphs.so by CMake. --- mpm/python/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mpm/python/CMakeLists.txt') diff --git a/mpm/python/CMakeLists.txt b/mpm/python/CMakeLists.txt index 2fd71b744..697c597dd 100644 --- a/mpm/python/CMakeLists.txt +++ b/mpm/python/CMakeLists.txt @@ -8,7 +8,10 @@ # This file included, use CMake directory variables ######################################################################## -ADD_LIBRARY(pyusrp_periphs SHARED pyusrp_periphs.cpp) +if(MPM_DEVICE STREQUAL "n3xx") + ADD_LIBRARY(pyusrp_periphs SHARED pyusrp_periphs/n3xx/pyusrp_periphs.cpp) +endif(MPM_DEVICE STREQUAL "n3xx") + TARGET_INCLUDE_DIRECTORIES(pyusrp_periphs PUBLIC ${PYTHON_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/lib/ -- cgit v1.2.3