forked from pothosware/PothosSDR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildLimeSuite.cmake
47 lines (43 loc) · 1.62 KB
/
BuildLimeSuite.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
############################################################
## Pothos SDR environment build sub-script
##
## This script builds LimeSuite w/ SoapySDR bindings
##
## * LimeSuite
############################################################
set(LIME_SUITE_BRANCH stable)
#only support uLimeSDR under msvc 2015 to match dlls in uLimeSDR/FTD3XXLibrary
set(ENABLE_uLimeSDR TRUE)
if (NOT MSVC14)
message(STATUS "!Skipping uLimeSDR - only supported on VC14")
set(ENABLE_uLimeSDR FALSE)
endif()
############################################################
## Build LimeSuite
##
## -DWX_ROOT_DIR is a hack to prevent FindwxWidgets.cmake
## from clearing wxWidgets_LIB_DIR the first configuration.
##
## -DFX3_SDK_PATH specifies the USB support for LimeSuite
## If the SDK is not present, USB support will be disabled.
##
############################################################
MyExternalProject_Add(LimeSuite
DEPENDS SoapySDR wxWidgets
GIT_REPOSITORY https://github.com/myriadrf/LimeSuite.git
GIT_TAG ${LIME_SUITE_BRANCH}
CMAKE_DEFAULTS ON
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DLIME_SUITE_EXTVER=${EXTRA_VERSION_INFO}
-DWX_ROOT_DIR=${wxWidgets_ROOT_DIR}
-DwxWidgets_ROOT_DIR=${wxWidgets_ROOT_DIR}
-DwxWidgets_LIB_DIR=${wxWidgets_LIB_DIR}
-DSoapySDR_DIR=${CMAKE_INSTALL_PREFIX}
-DFX3_SDK_PATH=${FX3_SDK_PATH}
-DENABLE_uLimeSDR=${ENABLE_uLimeSDR}
LICENSE_FILES COPYING
)
list(APPEND CPACK_PACKAGE_EXECUTABLES "LimeSuiteGUI" "Lime Suite")
list(APPEND CPACK_CREATE_DESKTOP_LINKS "LimeSuiteGUI")