-
Notifications
You must be signed in to change notification settings - Fork 48
/
BuildSDRApps.cmake
65 lines (60 loc) · 2.4 KB
/
BuildSDRApps.cmake
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
############################################################
## Pothos SDR environment build sub-script
##
## This script builds SDR applications that take a variety
## of dependencies and didn't fit into the other Build* files.
##
## * CubicSDR
## * Inspectrum
############################################################
set(CUBIC_SDR_BRANCH master)
set(INSPECTRUM_SDR_BRANCH master)
############################################################
## Build CubicSDR
##
## -DWX_ROOT_DIR is a hack to prevent FindwxWidgets.cmake
## from clearing wxWidgets_LIB_DIR the first configuration.
############################################################
MyExternalProject_Add(CubicSDR
DEPENDS SoapySDR wxWidgets liquiddsp fftw
GIT_REPOSITORY https://github.com/cjcliffe/CubicSDR.git
GIT_TAG ${CUBIC_SDR_BRANCH}
CMAKE_DEFAULTS ON
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DWX_ROOT_DIR=${wxWidgets_ROOT_DIR}
-DwxWidgets_ROOT_DIR=${wxWidgets_ROOT_DIR}
-DwxWidgets_LIB_DIR=${wxWidgets_LIB_DIR}
-DFFTW_INCLUDES=${FFTW3F_INCLUDE_DIRS}
-DFFTW_LIBRARIES=${FFTW3F_LIBRARIES}
-DFFTW_DLL=${FFTW3F_LIBRARIES} #this gets installed to bin
-DLIQUID_INCLUDES=${LIQUIDDSP_INCLUDE_DIR}
-DLIQUID_LIBRARIES=${LIQUIDDSP_LIBRARY}
-DLIQUID_DLL=${LIQUIDDSP_DLL}
-DSoapySDR_DIR=${CMAKE_INSTALL_PREFIX}
LICENSE_FILES LICENSE
)
list(APPEND CPACK_PACKAGE_EXECUTABLES "CubicSDR" "CubicSDR")
list(APPEND CPACK_CREATE_DESKTOP_LINKS "CubicSDR")
############################################################
## Build Inspectrum
############################################################
MyExternalProject_Add(Inspectrum
DEPENDS liquiddsp Qt5 fftw
GIT_REPOSITORY https://github.com/miek/inspectrum.git
GIT_TAG ${INSPECTRUM_SDR_BRANCH}
CMAKE_DEFAULTS ON
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DCMAKE_PREFIX_PATH=${QT5_ROOT}
-DMMAN=${CMAKE_INSTALL_PREFIX}/lib/mman.lib
-DFFTW_INCLUDES=${FFTW3F_INCLUDE_DIRS}
-DFFTW_LIBRARIES=${FFTW3F_LIBRARIES}
-DLIQUID_INCLUDES=${LIQUIDDSP_INCLUDE_DIR}
-DLIQUID_LIBRARIES=${LIQUIDDSP_LIBRARY}
LICENSE_FILES LICENSE
)
list(APPEND CPACK_PACKAGE_EXECUTABLES "inspectrum" "Inspectrum")
list(APPEND CPACK_CREATE_DESKTOP_LINKS "inspectrum")