forked from deepsig/sigmf-recorder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
134 lines (113 loc) · 2.75 KB
/
CMakeLists.txt
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
cmake_minimum_required(VERSION 3.12)
project(sigmf_recorder)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_MODULE_PATH $CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/libsigmf)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -fno-stack-protector")
add_subdirectory(libsigmf)
find_package(UHD REQUIRED)
find_package(Boost REQUIRED system filesystem program_options date_time thread)
add_executable(
sigmf_recorder
recorder.cpp
)
target_include_directories(
sigmf_recorder
PRIVATE
${UHD_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${SIGMF_INCLUDE_DIR}
)
target_link_libraries(
sigmf_recorder
libsigmf
${UHD_LIBRARIES}
${Boost_SYSTEM_LIBRARY_RELEASE}
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
)
## benchmark test
add_executable(
benchmark
benchmark_rate.cpp
)
target_include_directories(
benchmark
PRIVATE
${UHD_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${SIGMF_INCLUDE_DIR}
)
target_link_libraries(
benchmark
${UHD_LIBRARIES}
${Boost_SYSTEM_LIBRARY_RELEASE}
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_ALGORITHM_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_DATE_TIME_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
)
## benchmark test
add_executable(
rx_file
rx_samples_to_file.cpp
)
target_include_directories(
rx_file
PRIVATE
${UHD_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${SIGMF_INCLUDE_DIR}
)
target_link_libraries(
rx_file
${UHD_LIBRARIES}
${Boost_SYSTEM_LIBRARY_RELEASE}
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_ALGORITHM_LIBRARY}
${Boost_THREAD_LIBRARY}
${Boost_DATE_TIME_LIBRARY}
)
## manifest generator
add_executable(
manifest
manifest.cpp
)
target_include_directories(
manifest
PRIVATE
${UHD_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${SIGMF_INCLUDE_DIR}
)
target_link_libraries(
manifest
libsigmf
${UHD_LIBRARIES}
${Boost_SYSTEM_LIBRARY_RELEASE}
${Boost_PROGRAM_OPTIONS_LIBRARY}
)
## manifest generator
add_executable(
json_concat
json_concat.cpp
)
target_include_directories(
json_concat
PRIVATE
${UHD_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${SIGMF_INCLUDE_DIR}
)
target_link_libraries(
json_concat
libsigmf
${UHD_LIBRARIES}
${Boost_SYSTEM_LIBRARY_RELEASE}
${Boost_PROGRAM_OPTIONS_LIBRARY}
)
#get_cmake_property(_variableNames VARIABLES)
#list (SORT _variableNames)
#foreach (_variableName ${_variableNames})
# message(STATUS "${_variableName}=${${_variableName}}")
#endforeach()