mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-14 14:53:18 +00:00
BUG fixed in rtl-sdr signal_source cmake compiler script
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@308 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
parent
1cb46b2b6f
commit
ab874b7ded
@ -56,11 +56,7 @@ endif($ENV{GN3S_DRIVER})
|
||||
if($ENV{RTLSDR_DRIVER})
|
||||
################################################################################
|
||||
# OsmoSDR - http://sdr.osmocom.org/trac/
|
||||
################################################################################
|
||||
find_package(LibOsmoSDR)
|
||||
if(NOT LIBOSMOSDR_FOUND)
|
||||
message(FATAL_ERROR "libosmosdr required to build gnss-sdr with the optional RTLSDR driver")
|
||||
endif(NOT LIBOSMOSDR_FOUND)
|
||||
################################################################################
|
||||
find_package(GrOsmoSDR REQUIRED)
|
||||
if(NOT GROSMOSDR_FOUND)
|
||||
message(FATAL_ERROR "gr-osmosdr required to build gnss-sdr with the optional RTLSDR driver")
|
||||
@ -69,10 +65,9 @@ if($ENV{RTLSDR_DRIVER})
|
||||
set(RTL_DRIVER_INCLUDE_DIRS
|
||||
${OPT_DRIVER_INCLUDE_DIRS}
|
||||
${GROSMOSDR_INCLUDE_DIR}/osmosdr
|
||||
${LIBOSMOSDR_INCLUDE_DIR}
|
||||
)
|
||||
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} rtlsdr_signal_source.cc)
|
||||
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${LIBOSMOSDR_LIBRARIES} ${GROSMOSDR_LIBRARIES})
|
||||
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${GROSMOSDR_LIBRARIES})
|
||||
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${RTL_DRIVER_INCLUDE_DIRS})
|
||||
endif($ENV{RTLSDR_DRIVER})
|
||||
|
||||
@ -92,4 +87,4 @@ include_directories(
|
||||
)
|
||||
|
||||
add_library(signal_source_adapters ${SIGNAL_SOURCE_ADAPTER_SOURCES})
|
||||
target_link_libraries(signal_source_adapters gnss_sp_libs ${Boost_LIBRARIES} uhd gnuradio-uhd ${OPT_LIBRARIES})
|
||||
target_link_libraries(signal_source_adapters gnss_sp_libs ${Boost_LIBRARIES} uhd gnuradio-uhd ${OPT_LIBRARIES})
|
||||
|
Loading…
x
Reference in New Issue
Block a user