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
1 changed files with 3 additions and 8 deletions

View File

@ -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})