mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-10 06:46:03 +00:00
front-end-cal is only built and installed if RTLSDR_DRIVER is true
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@429 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
@@ -16,6 +16,11 @@
|
|||||||
# along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
|
# along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
if($ENV{RTLSDR_DRIVER})
|
||||||
|
set(RTLSDR_DRIVER ON)
|
||||||
|
endif($ENV{RTLSDR_DRIVER})
|
||||||
|
if(RTLSDR_DRIVER)
|
||||||
set(FRONT_END_CAL_SOURCES
|
set(FRONT_END_CAL_SOURCES
|
||||||
front_end_cal.cc
|
front_end_cal.cc
|
||||||
)
|
)
|
||||||
@@ -41,7 +46,7 @@ include_directories(
|
|||||||
|
|
||||||
if(OS_IS_MACOSX)
|
if(OS_IS_MACOSX)
|
||||||
# Tell the linker where the libraries installed by MacPorts are
|
# Tell the linker where the libraries installed by MacPorts are
|
||||||
link_directories( /opt/local/lib )
|
link_directories( /opt/local/lib ) # ugly!
|
||||||
endif(OS_IS_MACOSX)
|
endif(OS_IS_MACOSX)
|
||||||
|
|
||||||
add_library(front_end_cal_lib ${FRONT_END_CAL_SOURCES})
|
add_library(front_end_cal_lib ${FRONT_END_CAL_SOURCES})
|
||||||
@@ -55,3 +60,4 @@ target_link_libraries(front-end-cal ${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_BL
|
|||||||
install(TARGETS front-end-cal
|
install(TARGETS front-end-cal
|
||||||
DESTINATION ${CMAKE_SOURCE_DIR}/install
|
DESTINATION ${CMAKE_SOURCE_DIR}/install
|
||||||
)
|
)
|
||||||
|
endif(RTLSDR_DRIVER)
|
||||||
|
Reference in New Issue
Block a user