-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
executable file
·147 lines (134 loc) · 5.07 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
135
136
137
138
139
140
141
142
143
144
145
146
147
########################################################################
# Build Soapy SDR support module for NetSDR
########################################################################
# cmake -G"Visual Studio 15 2017 Win64" ../
cmake_minimum_required(VERSION 3.1)
project(SoapyNetSDR)
set(CMAKE_CXX_STANDARD 11)
if(CMAKE_COMPILER_IS_GNUCXX)
#disable warnings for unused parameters
add_definitions(-Wno-unused-parameter)
endif(CMAKE_COMPILER_IS_GNUCXX)
find_package(SoapySDR CONFIG)
if (NOT SoapySDR_FOUND)
message(FATAL_ERROR "Soapy SDR development files not found...")
endif ()
#find_package(RtAudio CONFIG)
#if (NOT RtAudio_FOUND)
# message(FATAL_ERROR "RtAudio SDR development files not #found...")
#endif ()
SET (sdrglut_sources
${sdrglut_sources}
MainSource/main.cpp
MainSource/QuitDialog.cpp
MainSource/DialogSave.cpp
MainSource/dialogTime.cpp
glui-routines/algebra3.cpp
glui-routines/arcball.cpp
glui-routines/glui.cpp
glui-routines/glui_add_controls.cpp
glui-routines/glui_bitmap_img_data.cpp
glui-routines/glui_bitmaps.cpp
glui-routines/glui_button.cpp
glui-routines/glui_checkbox.cpp
glui-routines/glui_column.cpp
glui-routines/glui_commandline.cpp
glui-routines/glui_control.cpp
glui-routines/glui_edittext.cpp
glui-routines/glui_filebrowser.cpp
glui-routines/glui_list.cpp
glui-routines/glui_listbox.cpp
glui-routines/glui_mouse_iaction.cpp
glui-routines/glui_node.cpp
glui-routines/glui_panel.cpp
glui-routines/glui_radio.cpp
glui-routines/glui_rollout.cpp
glui-routines/glui_rotation.cpp
glui-routines/glui_scrollbar.cpp
glui-routines/glui_separator.cpp
glui-routines/glui_spinner.cpp
glui-routines/glui_statictext.cpp
glui-routines/glui_string.cpp
glui-routines/glui_textbox.cpp
glui-routines/glui_translation.cpp
glui-routines/glui_tree.cpp
glui-routines/glui_treepanel.cpp
glui-routines/glui_window.cpp
glui-routines/quaternion.cpp
glui-routines/tools/ppm.cpp
Classes/CLines.cpp
Classes/CLInesPlotLabels.cpp
Classes/ClinesAttributes.cpp
Classes/ClinesPlotAttributes.cpp
Radio/smeter.cpp
Classes/CLinesPlotBox.cpp
Radio/Radio.cpp
Radio/DialogRadio.cpp
Radio/RaceFastsdr.cpp
MainSource/printInfo.cpp
Digital/Poly.cpp
Digital/BatchFile.cpp
MainSource/eMemory.cpp
Radio/send.cpp
MainSource/DialogFileOpen.cpp
SdrFile/SdrFile.cpp
MainSource/DialogSave.cpp
SdrFile/DialogSdrFile.cpp
MainSource/DialogFolder.cpp
MainSource/PlayIQ.cpp
MainSource/RecordIQ.cpp
MainSource/printInfo.cpp
Classes/Transmit.cpp
MainSource/WriteToGLUIWindow.cpp
Digital/Poly.cpp
Digital/BatchFile.cpp
MainSource/eMemory.cpp
Radio/send.cpp
Radio/send.cpp
Radio/WriteToWindow.cpp
CExpress/Utilities2.c
MainSource/Utilities.c
MainSource/Scene.c
DrawFindPointHistory/GridPlot.c
MainSource/WriteToGLUIWindow.cpp
Classes/CWindow.cpp
MainSource/sceneDisplay.c
MainSource/BackgroundQ.c
MainSource/mThread.cpp
MainSource/Getpalette.c
MainSource/SceneList.c
MainSource/cMalloc.c
MainSource/audiolib.cpp
CExpress/FFT2.c
)
SET (sdrglut_headers
${sdrglut_headers}
glui-routines/include/GL/glui.h
KdTree-routines/Defs.h
CExpress/SetFrameData.h
)
#network libraries
if (UNIX)
if (APPLE)
add_definitions(-Wno-deprecated)
link_directories(/opt/X11/lib /usr/local/lib)
add_executable(sdrglut.x ${sdrglut_sources} ${sdrglut_headers})
target_include_directories(sdrglut.x PUBLIC include CExpress KdTree-routines glui-routines glui-routines/include MainSource Classes Digital Radio DrawFindPointHistory SdrFile /usr/local/include)
target_link_libraries(sdrglut.x PRIVATE glut gl glu liquid rtaudio SoapySDR "-framework OpenAL")
else (APPLE)
#add_definitions(-Wno-deprecated)
#link_directories(/opt/X11/lib)
add_executable(sdrglut.x ${sdrglut_sources} ${sdrglut_headers})
target_include_directories(sdrglut.x PUBLIC include CExpress KdTree-routines glui-routines glui-routines/include MainSource Classes Digital Radio DrawFindPointHistory SdrFile)
target_link_libraries(sdrglut.x PRIVATE glut GL GLU liquid rtaudio SoapySDR openal pthread)
endif (APPLE)
else (UNIX)
link_directories(/opt/X11/lib "C:/Program Files/PothosSDR/lib" "C:/Program Files/RtAudio/lib" "freeglut-3.2.1/lib" "C:/Program Files (x86)/OpenAL 1.1 SDK/libs/Win64")
add_executable(sdrglut.x ${sdrglut_sources} ${sdrglut_headers})
target_include_directories(sdrglut.x PUBLIC include CExpress KdTree-routines glui-routines glui-routines/include MainSource Classes Digital Radio DrawFindPointHistory SdrFile)
include_directories("C:/Program Files/RtAudio/include" "C:/Program Files/PothosSDR/include" "C:/Program Files (x86)/OpenAL 1.1 SDK/include")
link_directories("C:/Program Files/RtAudio/lib" "C:/Program Files/PothosSDR/lib")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS)
target_link_libraries(sdrglut.x PRIVATE ws2_32 libliquid rtaudio SoapySDR freeglutd OpenAL32)
endif (UNIX)