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@386 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2013-07-13 10:35:52 +00:00
parent 175c2c3710
commit 482eabeeb2
1 changed files with 8 additions and 8 deletions

View File

@ -62,16 +62,16 @@ include_directories(
#Enable GN3S module if the driver is present
if( $ENV{GN3S_DRIVER} )
message( "Precompiler GN3S_DRIVER enabled" )
add_definitions(-DGN3S_DRIVER)
endif($ENV{GN3S_DRIVER} )
if( ($ENV{GN3S_DRIVER} EQUAL 1) OR (${GN3S_DRIVER} EQUAL 1) )
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) )
#Enable RTL-SDR module if the driver is present
if( $ENV{RTLSDR_DRIVER} )
message( "Precompiler RTLSDR_DRIVER enabled" )
add_definitions(-DRTLSDR_DRIVER)
endif($ENV{RTLSDR_DRIVER} )
if( ($ENV{RTLSDR_DRIVER} EQUAL 1) OR (${RTLSDR_DRIVER} EQUAL 1) )
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) )
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}