aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd/CMakeLists.txt
blob: b873f7a72631047faa363ad6f71607614732077d (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
27
28
#
# Copyright 2017 Ettus Research, a National Instruments Company
#
# SPDX-License-Identifier: GPL-3.0
#

IF(ENABLE_MPMD)
    IF(ENABLE_LIBERIO)
        MESSAGE(STATUS "Compiling MPMD with liberio support...")
        ADD_DEFINITIONS(-DHAVE_LIBERIO)
    ENDIF(ENABLE_LIBERIO)

    LIBUHD_APPEND_SOURCES(
        ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_image_loader.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_impl.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_mboard_impl.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_xport.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_xport_mgr.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_xport_ctrl_udp.cpp
    )

    IF(ENABLE_LIBERIO)
        LIBUHD_APPEND_SOURCES(
            ${CMAKE_CURRENT_SOURCE_DIR}/mpmd_xport_ctrl_liberio.cpp
        )
    ENDIF(ENABLE_LIBERIO)

ENDIF(ENABLE_MPMD)