-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
71 lines (63 loc) · 1.49 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
cmake_minimum_required(VERSION 3.16)
project(${SKBUILD_PROJECT_NAME}
VERSION ${SKBUILD_PROJECT_VERSION}
LANGUAGES CXX)
set(PYBIND11_FINDPYTHON ON)
find_package(pybind11 CONFIG REQUIRED)
pybind11_add_module(_rct_dsp2
src/sdr_record.cpp
src/usrp.cpp
src/iq_data.cpp
src/dspv3.cpp
src/sdr_test.cpp
src/sdr_generator.cpp
src/ping_sink.cpp
src/airspy.cpp
src/hackrf.cpp
src/utils.cpp
)
find_package(Boost QUIET REQUIRED COMPONENTS program_options system thread)
target_link_libraries(_rct_dsp2
PUBLIC
uhd
fftw3
fftw3_threads
m
Boost::system
Boost::thread
pthread
airspy
hackrf
)
target_compile_definitions(_rct_dsp2
PRIVATE VERSION_INFO=${PROJECT_VERSION}
USE_PYBIND11=1)
install(TARGETS _rct_dsp2 DESTINATION .)
add_executable(pingFinderTest
src/sdr_record.cpp
src/usrp.cpp
src/iq_data.cpp
src/dspv3.cpp
src/sdr_test.cpp
src/sdr_generator.cpp
src/ping_sink.cpp
src/airspy.cpp
src/test_PingFinder.cpp
src/hackrf.cpp
src/utils.cpp
)
target_link_libraries(pingFinderTest
PUBLIC
uhd
fftw3
fftw3_threads
m
Boost::system
Boost::thread
pthread
airspy
hackrf
)
target_compile_definitions(pingFinderTest
PRIVATE VERSION_INFO=${EXAMPLE_VERSION_INFO}
USE_PYBIND11=0)