aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x400/CMakeLists.txt
blob: 7885b0e3de00d284fce4459836a4ccb928264256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# Copyright 2020 Ettus Research, a National Instruments Brand
#
# SPDX-License-Identifier: GPL-3.0-or-later
#

########################################################################
# This file included, use CMake directory variables
########################################################################

########################################################################
# Conditionally configure the X400 support
########################################################################
if(ENABLE_X400)
    LIBUHD_APPEND_SOURCES(
        ${CMAKE_CURRENT_SOURCE_DIR}/adc_self_calibration.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/x400_gpio_control.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/x400_radio_control.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/x400_rfdc_control.cpp
    )

    if(ENABLE_DPDK)
        include_directories(${DPDK_INCLUDE_DIRS})
        add_definitions(-DHAVE_DPDK)
    endif(ENABLE_DPDK)
endif(ENABLE_X400)