blob: ea9dafd71874b88af20b7d45732550781023da86 (
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
|
#
# Copyright 2019 Ettus Research, a National Instruments Brand
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This app needs Boost
set(BOOST_REQUIRED_COMPONENTS
program_options
system
)
if(MSVC)
set(BOOST_ALL_DYN_LINK "${BOOST_ALL_DYN_LINK}" CACHE BOOL "boost enable dynamic linking")
if(BOOST_ALL_DYN_LINK)
add_definitions(-DBOOST_ALL_DYN_LINK) #setup boost auto-linking in msvc
else(BOOST_ALL_DYN_LINK)
set(BOOST_REQUIRED_COMPONENTS) #empty components list for static link
endif(BOOST_ALL_DYN_LINK)
endif(MSVC)
find_package(Boost 1.65 REQUIRED ${BOOST_REQUIRED_COMPONENTS})
include_directories(
${UHD_SOURCE_DIR}/include
)
add_executable(init_gain_block
init_gain_block.cpp
)
target_link_libraries(init_gain_block
${UHD_LIBRARIES}
${Boost_LIBRARIES}
-Wl,--no-as-needed
rfnoc-example
)
### Once it's built... ########################################################
# Here, you would have commands to install your program.
# We will skip these in this example.
#install(
# TARGETS init_gain_block
# RUNTIME
# DESTINATION ${PROJECT_DATA_DIR}
# COMPONENT apps
#)
|