mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 21:01:45 -05:00
LimeSDR support: removed Debian specifics from the build as it will use LimeSuite as an external package
This commit is contained in:
parent
ab89253643
commit
7c1ff7c5ad
@ -8,20 +8,11 @@ set(limesdrdevice_HEADERS
|
|||||||
devicelimesdrparam.h
|
devicelimesdrparam.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
|
||||||
include_directories(
|
|
||||||
.
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
${LIMESUITESRC}/include
|
|
||||||
${LIMESUITESRC}/src
|
|
||||||
)
|
|
||||||
else (BUILD_DEBIAN)
|
|
||||||
include_directories(
|
include_directories(
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${LIMESUITE_INCLUDE_DIR}
|
${LIMESUITE_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
endif (BUILD_DEBIAN)
|
|
||||||
|
|
||||||
add_definitions(${QT_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS})
|
||||||
add_definitions(-DQT_SHARED)
|
add_definitions(-DQT_SHARED)
|
||||||
@ -30,16 +21,9 @@ add_library(limesdrdevice SHARED
|
|||||||
${limesdrdevice_SOURCES}
|
${limesdrdevice_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
|
||||||
target_link_libraries(limesdrdevice
|
|
||||||
limesuite
|
|
||||||
sdrbase
|
|
||||||
)
|
|
||||||
else (BUILD_DEBIAN)
|
|
||||||
target_link_libraries(limesdrdevice
|
target_link_libraries(limesdrdevice
|
||||||
${LIMESUITE_LIBRARY}
|
${LIMESUITE_LIBRARY}
|
||||||
sdrbase
|
sdrbase
|
||||||
)
|
)
|
||||||
endif (BUILD_DEBIAN)
|
|
||||||
|
|
||||||
install(TARGETS limesdrdevice DESTINATION lib)
|
install(TARGETS limesdrdevice DESTINATION lib)
|
||||||
|
@ -20,22 +20,12 @@ set(limesdrinput_FORMS
|
|||||||
limesdrinputgui.ui
|
limesdrinputgui.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
|
||||||
include_directories(
|
|
||||||
.
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
${CMAKE_SOURCE_DIR}/devices
|
|
||||||
${LIBBLADERFLIBSRC}/include
|
|
||||||
${LIBBLADERFLIBSRC}/src
|
|
||||||
)
|
|
||||||
else (BUILD_DEBIAN)
|
|
||||||
include_directories(
|
include_directories(
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/devices
|
${CMAKE_SOURCE_DIR}/devices
|
||||||
${LIMESUITE_INCLUDE_DIR}
|
${LIMESUITE_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
endif (BUILD_DEBIAN)
|
|
||||||
|
|
||||||
#include(${QT_USE_FILE})
|
#include(${QT_USE_FILE})
|
||||||
add_definitions(${QT_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS})
|
||||||
@ -51,21 +41,12 @@ add_library(inputlimesdr SHARED
|
|||||||
${limesdrinput_FORMS_HEADERS}
|
${limesdrinput_FORMS_HEADERS}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
|
||||||
target_link_libraries(inputlimesdr
|
|
||||||
${QT_LIBRARIES}
|
|
||||||
limesdr
|
|
||||||
sdrbase
|
|
||||||
limesdrdevice
|
|
||||||
)
|
|
||||||
else (BUILD_DEBIAN)
|
|
||||||
target_link_libraries(inputlimesdr
|
target_link_libraries(inputlimesdr
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
${LIMESUITE_LIBRARY}
|
${LIMESUITE_LIBRARY}
|
||||||
sdrbase
|
sdrbase
|
||||||
limesdrdevice
|
limesdrdevice
|
||||||
)
|
)
|
||||||
endif (BUILD_DEBIAN)
|
|
||||||
|
|
||||||
qt5_use_modules(inputlimesdr Core Widgets)
|
qt5_use_modules(inputlimesdr Core Widgets)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user