blob: d04b4d93ecc2f60692e29215ee784951b529484b (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#
# Copyright 2018 Ettus Research, a National Instruments Company
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
########################################################################
# This file included, use CMake directory variables
########################################################################
macro(CATALINA_APPEND_SOURCES)
set(catalina_sources ${catalina_sources})
list(APPEND catalina_sources ${ARGV})
set(catalina_sources ${catalina_sources} PARENT_SCOPE)
endmacro(CATALINA_APPEND_SOURCES)
set (CMAKE_CATALINA_SOURCE_DIR
${UHD_SOURCE_DIR}/lib/usrp/common
)
########################################################################
# Setup defines for process scheduling (needed for thread.cpp)
########################################################################
message(STATUS " Priority scheduling disabled.")
set(THREAD_PRIO_DEFS HAVE_THREAD_PRIO_DUMMY)
set_source_files_properties(
${UHD_SOURCE_DIR}/lib/utils/thread.cpp
PROPERTIES COMPILE_DEFINITIONS "${THREAD_PRIO_DEFS}"
)
########################################################################
# Setup UHD_VERSION and UHD_COMPONENT for version.cpp
########################################################################
configure_file(
${UHD_SOURCE_DIR}/include/uhd/version.hpp.in
${CMAKE_BINARY_DIR}/include/uhd/version.hpp
)
configure_file(
${UHD_SOURCE_DIR}/lib/version.cpp
${CMAKE_BINARY_DIR}/lib/version.cpp
)
# TODO: Do something better than listing all the files individually
set(catalina_sources
${CMAKE_CATALINA_SOURCE_DIR}/ad9361_ctrl.cpp
${CMAKE_CATALINA_SOURCE_DIR}/ad936x_manager.cpp
${CMAKE_CATALINA_SOURCE_DIR}/ad9361_driver/ad9361_device.cpp
${UHD_SOURCE_DIR}/lib/types/filters.cpp
${UHD_SOURCE_DIR}/lib/types/ranges.cpp
${UHD_SOURCE_DIR}/lib/types/sensors.cpp
${UHD_SOURCE_DIR}/lib/types/serial.cpp
${UHD_SOURCE_DIR}/lib/property_tree.cpp
${UHD_SOURCE_DIR}/lib/utils/log.cpp
${UHD_SOURCE_DIR}/lib/utils/thread.cpp
${CMAKE_BINARY_DIR}/lib/version.cpp
)
USRP_PERIPHS_ADD_OBJECT(catalina ${catalina_sources})
target_include_directories(catalina PUBLIC
$<BUILD_INTERFACE:${UHD_SOURCE_DIR}/lib/include>)
target_include_directories(catalina PUBLIC
$<BUILD_INTERFACE:${UHD_SOURCE_DIR}/lib/usrp/common/ad9361_driver>)
target_include_directories(catalina PUBLIC
$<BUILD_INTERFACE:${UHD_SOURCE_DIR}/lib/include>)
target_include_directories(dboards PUBLIC
$<BUILD_INTERFACE:${UHD_SOURCE_DIR}/lib/usrp/common/ad9361_driver>)
|