@ -896,14 +896,24 @@ if(ENABLE_FEATURE_STARTRACKER)
@@ -896,14 +896,24 @@ if(ENABLE_FEATURE_STARTRACKER)
if ( WIN32 )
set ( CSPICE_LIBRARIES "${SDRANGEL_BINARY_LIB_DIR}/cspice.lib" CACHE INTERNAL "" )
elseif ( LINUX )
# W e n e e d a s h a r e d l i b r a r y o n L i n u x , a s t h e s t a t i c l i b r a r y h a s n o n P I C c o d e , a n d w e n e e d t o l i n k i t i n t o a s h a r e d l i b r a r y
# E x t e r n a l P r o j e c t c s p i c e c u r r e n t l y o u t p u t s l i b c s p i c e . s o u n d e r
# $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / c s p i c e / s r c / c s p i c e - b u i l d / l i b / l i b c s p i c e . s o
# s o p o i n t C S P I C E _ L I B R A R I E S t h e r e .
set ( CSPICE_LIBRARIES
" $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / l i b $ { L I B _ S U F F I X } / l i b c s p i c e . s o "
C A C H E I N T E R N A L " "
)
# W e n e e d a s h a r e d l i b r a r y o n L i n u x , a s t h e s t a t i c l i b r a r y h a s n o n P I C c o d e ,
# a n d w e n e e d t o l i n k i t i n t o a s h a r e d l i b r a r y
if ( CMAKE_BUILD_TYPE STREQUAL "None" )
# E x t e r n a l P r o j e c t c s p i c e c u r r e n t l y o u t p u t s l i b c s p i c e . s o u n d e r
# $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / c s p i c e / s r c / c s p i c e - b u i l d / l i b / l i b c s p i c e . s o
# s o p o i n t C S P I C E _ L I B R A R I E S t h e r e .
set ( CSPICE_LIBRARIES
" $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / c s p i c e / s r c / c s p i c e - b u i l d / l i b / l i b c s p i c e . s o "
C A C H E I N T E R N A L " "
)
else ( )
# R e l e a s e , D e b u g , a n d R e l W i t h D e b I n f o h a v e c o n f i g u r a t i o n - s p e c i f i c o u t p u t
# d i r e c t o r i e s s u p p l i e d b y S D R a n g e l .
set ( CSPICE_LIBRARIES
" $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / l i b $ { L I B _ S U F F I X } / l i b c s p i c e . s o "
C A C H E I N T E R N A L " "
)
endif ( )
# D i s a b l e - W e r r o r = f o r m a t - s e c u r i t y f o r c s p i c e o n l y : d i s t r o h a r d e n i n g flags ( e.g. Ubuntu Noble )
# i n j e c t - W e r r o r = f o r m a t - s e c u r i t y w h i c h f a i l s c s p i c e s o u r c e s t h a t l a c k - W f o r m a t .
set ( CSPICE_ARGS "-DCSPICE_BUILD_STATIC_LIBRARY=OFF"
@ -1227,8 +1237,27 @@ if (LINUX)
@@ -1227,8 +1237,27 @@ if (LINUX)
if ( ENABLE_BLADERF AND ( NOT LIBBLADERF_FOUND OR LIBBLADERF_EXTERNAL ) )
set_global_cache ( LIBBLADERF_FOUND ON )
set ( LIBBLADERF_EXTERNAL ON CACHE INTERNAL "" )
set ( LIBBLADERF_INCLUDE_DIRS "${EXTERNAL_BUILD_LIBRARIES}/bladerf/src/bladerf/host/libraries/libbladeRF/include" CACHE INTERNAL "" )
set ( LIBBLADERF_LIBRARIES "${EXTERNAL_BUILD_LIBRARIES}/lib${LIB_SUFFIX}/libbladeRF.so.2" CACHE INTERNAL "" )
set ( LIBBLADERF_INCLUDE_DIRS
" $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / b l a d e r f / s r c / b l a d e r f / h o s t / l i b r a r i e s / l i b b l a d e R F / i n c l u d e "
C A C H E I N T E R N A L " "
)
if ( CMAKE_BUILD_TYPE STREQUAL "None" )
# E x t e r n a l P r o j e c t b l a d e r f c u r r e n t l y o u t p u t s l i b b l a d e R F . s o . 2 u n d e r
# $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / b l a d e r f / s r c / b l a d e r f - b u i l d / o u t p u t / l i b b l a d e R F . s o . 2
# s o p o i n t L I B B L A D E R F _ L I B R A R I E S t h e r e .
set ( LIBBLADERF_LIBRARIES
" $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / b l a d e r f / s r c / b l a d e r f - b u i l d / o u t p u t / l i b b l a d e R F . s o . 2 "
C A C H E I N T E R N A L " "
)
else ( )
# R e l e a s e , D e b u g , a n d R e l W i t h D e b I n f o h a v e c o n f i g u r a t i o n - s p e c i f i c o u t p u t
# d i r e c t o r i e s s u p p l i e d b y S D R a n g e l .
set ( LIBBLADERF_LIBRARIES
" $ { E X T E R N A L _ B U I L D _ L I B R A R I E S } / l i b $ { L I B _ S U F F I X } / l i b b l a d e R F . s o . 2 "
C A C H E I N T E R N A L " "
)
endif ( )
ExternalProject_Add ( bladerf
G I T _ R E P O S I T O R Y h t t p s : / / g i t h u b . c o m / N u a n d / b l a d e R F . g i t
G I T _ T A G $ { B L A D E R F _ T A G }