mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-26 00:46:59 +00:00
Now the gnss_block_factory catches 'cmake .. -DRTLSDR_DRIVER=1' and/or 'cmake .. -DGN3S_DRIVER=1'
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@387 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
parent
482eabeeb2
commit
f79c5685c4
@ -421,8 +421,12 @@ if( $ENV{GN3S_DRIVER} )
|
||||
# copy firmware to install folder
|
||||
# Build project gr-gn3s
|
||||
else( $ENV{GN3S_DRIVER} )
|
||||
message( "GN3S_DRIVER is not defined." )
|
||||
message( "Define it with 'export GN3S_DRIVER=1' to add support for the GN3S dongle." )
|
||||
if( GN3S_DRIVER )
|
||||
message("GN3S driver will be compiled")
|
||||
else( GNSS_DRIVER )
|
||||
message( "GN3S_DRIVER is not defined." )
|
||||
message( "Define it with 'export GN3S_DRIVER=1' to add support for the GN3S dongle." )
|
||||
endif( GN3S_DRIVER )
|
||||
endif($ENV{GN3S_DRIVER} )
|
||||
|
||||
if( $ENV{RTLSDR_DRIVER} )
|
||||
|
@ -61,17 +61,25 @@ include_directories(
|
||||
)
|
||||
|
||||
|
||||
#Enable GN3S module if the driver is present
|
||||
if( ($ENV{GN3S_DRIVER} EQUAL 1) OR (${GN3S_DRIVER} EQUAL 1) )
|
||||
#Enable GN3S module if the flag is present
|
||||
if( $ENV{GN3S_DRIVER} )
|
||||
message( "Support for RF front-end GN3S v2 enabled" )
|
||||
add_definitions(-DGN3S_DRIVER=1)
|
||||
endif( ($ENV{GN3S_DRIVER} EQUAL 1) OR (${GN3S_DRIVER} EQUAL 1) )
|
||||
endif( $ENV{GN3S_DRIVER} )
|
||||
if( GN3S_DRIVER )
|
||||
message( "Support for RF front-end GN3S v2 enabled" )
|
||||
add_definitions(-DGN3S_DRIVER=1)
|
||||
endif( GN3S_DRIVER )
|
||||
|
||||
#Enable RTL-SDR module if the driver is present
|
||||
if( ($ENV{RTLSDR_DRIVER} EQUAL 1) OR (${RTLSDR_DRIVER} EQUAL 1) )
|
||||
#Enable RTL-SDR module if the flag is present
|
||||
if( $ENV{RTLSDR_DRIVER} )
|
||||
message( "Support for RF front-end based on RTL dongle enabled" )
|
||||
add_definitions(-DRTLSDR_DRIVER=1)
|
||||
endif( ($ENV{RTLSDR_DRIVER} EQUAL 1) OR (${RTLSDR_DRIVER} EQUAL 1) )
|
||||
endif( $ENV{RTLSDR_DRIVER} )
|
||||
if( RTLSDR_DRIVER )
|
||||
message( "Support for RF front-end based on RTL dongle enabled" )
|
||||
add_definitions(-DRTLSDR_DRIVER=1)
|
||||
endif( RTLSDR_DRIVER )
|
||||
|
||||
add_library(gnss_rx ${GNSS_RECEIVER_SOURCES})
|
||||
target_link_libraries(gnss_rx ${Boost_LIBRARIES} ${ARMADILLO_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_BLOCKS_LIBRARIES} ${GNURADIO_FFT_LIBRARIES} ${GNURADIO_FILTER_LIBRARIES}
|
||||
|
Loading…
Reference in New Issue
Block a user