1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-07 04:22:56 +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:
Javier Arribas 2013-01-10 11:38:58 +00:00
parent 1cb46b2b6f
commit ab874b7ded

View File

@ -57,10 +57,6 @@ if($ENV{RTLSDR_DRIVER})
################################################################################ ################################################################################
# OsmoSDR - http://sdr.osmocom.org/trac/ # 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) find_package(GrOsmoSDR REQUIRED)
if(NOT GROSMOSDR_FOUND) if(NOT GROSMOSDR_FOUND)
message(FATAL_ERROR "gr-osmosdr required to build gnss-sdr with the optional RTLSDR driver") 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 set(RTL_DRIVER_INCLUDE_DIRS
${OPT_DRIVER_INCLUDE_DIRS} ${OPT_DRIVER_INCLUDE_DIRS}
${GROSMOSDR_INCLUDE_DIR}/osmosdr ${GROSMOSDR_INCLUDE_DIR}/osmosdr
${LIBOSMOSDR_INCLUDE_DIR}
) )
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} rtlsdr_signal_source.cc) 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}) set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${RTL_DRIVER_INCLUDE_DIRS})
endif($ENV{RTLSDR_DRIVER}) endif($ENV{RTLSDR_DRIVER})