diff --git a/CMakeLists.txt b/CMakeLists.txt index 31b3d28..625489c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,11 @@ message(STATUS "UHD root directory: ${UHD_ROOT}") message(STATUS "UHD include directories: ${UHD_INCLUDE_DIRS}") message(STATUS "UHD libraries: ${UHD_LIBRARIES}") +if (NOT SOAPYSDR_ROOT) + get_filename_component(SOAPYSDR_ROOT "${SoapySDR_INCLUDE_DIRS}/.." ABSOLUTE) +endif() +message(STATUS "SoapySDR root directory: ${SOAPYSDR_ROOT}") + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${SoapySDR_INCLUDE_DIRS}) include_directories(${UHD_INCLUDE_DIRS}) @@ -166,6 +171,8 @@ install(TARGETS soapySupport DESTINATION ${UHD_ROOT}/lib${LIB_SUFFIX}/uhd/modules ) +set(CMAKE_INSTALL_PREFIX ${SOAPYSDR_ROOT}) + ######################################################################## # rpath setup - http://www.cmake.org/Wiki/CMake_RPATH_handling ########################################################################