diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2017-03-27 17:07:44 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:44 -0800 |
commit | 8ac9014d5c30836665378d2d088b5c602162f8ac (patch) | |
tree | 21708ce88f72da4818e73afe054b89e7f1589fdd /mpm/CMakeLists.txt | |
parent | 6d332e5ca4a7311406ac285f827c31c9e5b94280 (diff) | |
download | uhd-8ac9014d5c30836665378d2d088b5c602162f8ac.tar.gz uhd-8ac9014d5c30836665378d2d088b5c602162f8ac.tar.bz2 uhd-8ac9014d5c30836665378d2d088b5c602162f8ac.zip |
mpm: CMake cleanup, Python code enhancements
- Send user defined data in ping
- Improve rpc_shell, add mpm_debug.py, fix tracebacks in multiprocessing
Diffstat (limited to 'mpm/CMakeLists.txt')
-rw-r--r-- | mpm/CMakeLists.txt | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/mpm/CMakeLists.txt b/mpm/CMakeLists.txt index 0de4ad262..65d01b114 100644 --- a/mpm/CMakeLists.txt +++ b/mpm/CMakeLists.txt @@ -61,7 +61,6 @@ FIND_PACKAGE(Boost 1.53 COMPONENTS ${BOOST_REQUIRED_COMPONENTS}) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) -message("python executable: ${PYTHON_EXECUTABLE}") MESSAGE(STATUS "Boost include directories: ${Boost_INCLUDE_DIRS}") MESSAGE(STATUS "Boost library directories: ${Boost_LIBRARY_DIRS}") @@ -72,19 +71,39 @@ MESSAGE(STATUS "Boost libraries: ${Boost_LIBRARIES}") ######################################################################## SET(PYTHON_ADDITIONAL_VERSIONS 2.7 3.4 3.5) -message("python executable: ${PYTHON_EXECUTABLE}") FIND_PACKAGE(PythonInterp) -message("python executable: ${PYTHON_EXECUTABLE}") FIND_PACKAGE(PythonLibs) -message("python executable: ${PYTHON_EXECUTABLE}") + +######################################################################## +# Install Dirs +######################################################################## +#when the library suffix should be 64 (applies to redhat linux family) +IF(NOT DEFINED LIB_SUFFIX AND REDHAT AND CMAKE_SYSTEM_PROCESSOR MATCHES "64$") + SET(LIB_SUFFIX 64) +ENDIF() +IF(CMAKE_INSTALL_LIBDIR MATCHES lib64) + SET(LIB_SUFFIX 64) +ENDIF() + +SET(LIB_SUFFIX ${LIB_SUFFIX} CACHE STRING "lib directory suffix") +SET(RUNTIME_DIR bin) +SET(LIBRARY_DIR lib${LIB_SUFFIX}) +SET(INCLUDE_DIR include) +SET(PKG_DATA_DIR share/mpm) +IF(NOT DEFINED PKG_LIB_DIR) + SET(PKG_LIB_DIR ${LIBRARY_DIR}/mpm) +ENDIF() +SET(PKG_DOC_DIR share/doc/mpm) +SET(PKG_MAN_DIR share/man/man1) + ######################################################################## # Setup library configuration ######################################################################## SET(CMAKE_CXX_STANDARD 11) -# SET(MPM_DEVICE "tests" CACHE STRING "Choose a MPM device to build") -# SET_PROPERTY(CACHE MPM_DEVICE PROPERTY STRINGS tests) +SET(MPM_DEVICE "n310" CACHE STRING "Choose an MPM device to build") +SET_PROPERTY(CACHE MPM_DEVICE PROPERTY STRINGS n310 tests) SET(UHD_HOST_ROOT ${CMAKE_SOURCE_DIR}/../host) @@ -97,11 +116,6 @@ INCLUDE_DIRECTORIES( ADD_SUBDIRECTORY(dboards) ADD_SUBDIRECTORY(lib) -IF(MPM_DEVICE STREQUAL tests) - ADD_SUBDIRECTORY(tests) -ELSEIF(MPM_DEVICE STREQUAL n310) - ADD_SUBDIRECTORY(n310) -ENDIF(MPM_DEVICE STREQUAL tests) MESSAGE("usrp_periphs objects: ${usrp_periphs_objects}") ADD_LIBRARY(usrp-periphs SHARED ${usrp_periphs_objects}) @@ -111,3 +125,4 @@ TARGET_LINK_LIBRARIES(usrp-periphs ) ADD_SUBDIRECTORY(python) +ADD_SUBDIRECTORY(tools) |